PHP Класс VersionPress\Tests\Utils\TestConfig

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$defaultConfigFile
$end2endTestType string Type of workers that will run the tests (selenium / wp-cli).
$seleniumConfig SeleniumConfig
$sites SiteConfig[] Associative array of configured sites where key is the site name and value is a SiteConfig.
$testSite SiteConfig Site used for current testing. One of the $sites.
$wpCliVersion string Version of WP-CLI that will be used (e.g. 0.19.0 / latest-stable)

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

Метод Описание
__construct ( $configFile )
createDefaultConfig ( ) : TestConfig Creates new instance of TestConfig from {@link TestConfig::$defaultConfigFile}.

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

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

public __construct ( $configFile )

createDefaultConfig() публичный статический Метод

Creates new instance of TestConfig from {@link TestConfig::$defaultConfigFile}.
public static createDefaultConfig ( ) : TestConfig
Результат TestConfig

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

$defaultConfigFile публичное статическое свойство

public static $defaultConfigFile

$end2endTestType публичное свойство

Type of workers that will run the tests (selenium / wp-cli).
public string $end2endTestType
Результат string

$seleniumConfig публичное свойство

public SeleniumConfig,VersionPress\Tests\Utils $seleniumConfig
Результат SeleniumConfig

$sites публичное свойство

Associative array of configured sites where key is the site name and value is a SiteConfig.
public SiteConfig[],VersionPress\Tests\Utils $sites
Результат SiteConfig[]

$testSite публичное свойство

Site used for current testing. One of the $sites.
public SiteConfig,VersionPress\Tests\Utils $testSite
Результат SiteConfig

$wpCliVersion публичное свойство

Version of WP-CLI that will be used (e.g. 0.19.0 / latest-stable)
public string $wpCliVersion
Результат string