PHP Класс Codeception\Module\WPBrowser

Наследование: extends Codeception\Module\PhpBrowser, use trait WPBrowserMethods
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$adminPath [type] The admin absolute URL.
$loginUrl string The login screen absolute URL
$pluginsPath string The plugin screen absolute URL
$requiredFields array The module required fields, to be set in the suite .yml configuration file.

Открытые методы

Метод Описание
_initialize ( ) : void Initializes the module setting the properties values.
activatePlugin ( string $pluginSlug ) : void In the plugin administration screen activates a plugin clicking the "Activate" link.
deactivatePlugin ( string $pluginSlug ) : void In the plugin administration screen deactivates a plugin clicking the "Deactivate" link.
grabCookiesWithPattern ( string $cookiePattern ) : Cookie | null Returns all the cookies whose name matches a regex pattern.

Защищенные методы

Метод Описание
configBackCompat ( )
validateConfig ( )

Описание методов

_initialize() публичный Метод

Initializes the module setting the properties values.
public _initialize ( ) : void
Результат void

activatePlugin() публичный Метод

The method will presume the browser is in the plugin screen already.
public activatePlugin ( string $pluginSlug ) : void
$pluginSlug string The plugin slug, like "hello-dolly".
Результат void

configBackCompat() защищенный Метод

protected configBackCompat ( )

deactivatePlugin() публичный Метод

The method will presume the browser is in the plugin screen already.
public deactivatePlugin ( string $pluginSlug ) : void
$pluginSlug string The plugin slug, like "hello-dolly".
Результат void

grabCookiesWithPattern() публичный Метод

Returns all the cookies whose name matches a regex pattern.
public grabCookiesWithPattern ( string $cookiePattern ) : Cookie | null
$cookiePattern string
Результат Symfony\Component\BrowserKit\Cookie | null

validateConfig() защищенный Метод

protected validateConfig ( )

Описание свойств

$adminPath защищенное свойство

The admin absolute URL.
protected [type] $adminPath
Результат [type]

$loginUrl защищенное свойство

The login screen absolute URL
protected string $loginUrl
Результат string

$pluginsPath защищенное свойство

The plugin screen absolute URL
protected string $pluginsPath
Результат string

$requiredFields защищенное свойство

The module required fields, to be set in the suite .yml configuration file.
protected array $requiredFields
Результат array