Method | Description | |
---|---|---|
activatePlugin ( string $pluginSlug ) : void | In the plugin administration screen activates a plugin clicking the "Activate" link. | |
amOnAdminPage ( $path ) | ||
amOnPagesPage ( ) : void | Navigates the browser to the Pages administration screen. | |
amOnPluginsPage ( ) : void | Navigates the browser to the plugins administration screen. | |
deactivatePlugin ( string $pluginSlug ) : void | In the plugin administration screen deactivates a plugin clicking the "Deactivate" link. | |
dontSeePluginInstalled ( string $pluginSlug ) : void | Looks for a missing plugin in the plugin administration screen. | |
grabWordPressAuthCookie ( null $pattern = null ) : mixed | Returns WordPress default auth cookie if present. | |
grabWordPressLoginCookie ( null $pattern = null ) : mixed | Returns WordPress default login cookie if present. | |
grabWordPressTestCookie ( null $pattern = null ) : mixed | Returns WordPress default test cookie if present. | |
loginAs ( string $username, string $password ) : array | Goes to the login page and logs in using the given credentials. | |
loginAsAdmin ( ) : array | Goes to the login page and logs in as the site admin. | |
seeErrorMessage ( array $classes = '' ) : void | In an administration screen will look for an error message. | |
seeMessage ( array $classes = '' ) : void | In an administration screen will look for a message. | |
seePluginActivated ( string $pluginSlug ) : void | Looks for an activated plugin in the plugin administration screen. | |
seePluginDeactivated ( string $pluginSlug ) : void | Looks for a deactivated plugin in the plugin administration screen. | |
seePluginInstalled ( string $pluginSlug ) : void | Looks for a plugin in the plugin administration screen. | |
seeWpDiePage ( ) : void | Checks that the current page is a wp_die generated one. |
public activatePlugin ( string $pluginSlug ) : void | ||
$pluginSlug | string | The plugin slug, like "hello-dolly". |
return | void |
public amOnPagesPage ( ) : void | ||
return | void |
public amOnPluginsPage ( ) : void | ||
return | void |
public deactivatePlugin ( string $pluginSlug ) : void | ||
$pluginSlug | string | The plugin slug, like "hello-dolly". |
return | void |
public dontSeePluginInstalled ( string $pluginSlug ) : void | ||
$pluginSlug | string | The plugin slug, like "hello-dolly". |
return | void |
public grabWordPressAuthCookie ( null $pattern = null ) : mixed | ||
$pattern | null | Optional, overrides the default cookie name. |
return | mixed | Either a cookie or null. |
public grabWordPressLoginCookie ( null $pattern = null ) : mixed | ||
$pattern | null | Optional, overrides the default cookie name. |
return | mixed | Either a cookie or null. |
public grabWordPressTestCookie ( null $pattern = null ) : mixed | ||
$pattern | null | Optional, overrides the default cookie name. |
return | mixed | Either a cookie or null. |
public loginAsAdmin ( ) : array | ||
return | array | An array of login credentials and auth cookies. |
public seeErrorMessage ( array $classes = '' ) : void | ||
$classes | array | A list of classes the error notice should have. |
return | void |
public seeMessage ( array $classes = '' ) : void | ||
$classes | array | A list of classes the message should have. |
return | void |
public seePluginActivated ( string $pluginSlug ) : void | ||
$pluginSlug | string | The plugin slug, like "hello-dolly". |
return | void |
public seePluginDeactivated ( string $pluginSlug ) : void | ||
$pluginSlug | string | The plugin slug, like "hello-dolly". |
return | void |
public seePluginInstalled ( string $pluginSlug ) : void | ||
$pluginSlug | string | The plugin slug, like "hello-dolly". |
return | void |
public seeWpDiePage ( ) : void | ||
return | void |