PHP Class VersionPress\Tests\Utils\TestConfig

Show file Open project: versionpress/versionpress Class Usage Examples

Public Properties

Property Type Description
$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)

Public Methods

Method Description
__construct ( $configFile )
createDefaultConfig ( ) : TestConfig Creates new instance of TestConfig from {@link TestConfig::$defaultConfigFile}.

Method Details

__construct() public method

public __construct ( $configFile )

createDefaultConfig() public static method

Creates new instance of TestConfig from {@link TestConfig::$defaultConfigFile}.
public static createDefaultConfig ( ) : TestConfig
return TestConfig

Property Details

$defaultConfigFile public static property

public static $defaultConfigFile

$end2endTestType public property

Type of workers that will run the tests (selenium / wp-cli).
public string $end2endTestType
return string

$seleniumConfig public property

public SeleniumConfig,VersionPress\Tests\Utils $seleniumConfig
return SeleniumConfig

$sites public property

Associative array of configured sites where key is the site name and value is a SiteConfig.
public SiteConfig[],VersionPress\Tests\Utils $sites
return SiteConfig[]

$testSite public property

Site used for current testing. One of the $sites.
public SiteConfig,VersionPress\Tests\Utils $testSite
return SiteConfig

$wpCliVersion public property

Version of WP-CLI that will be used (e.g. 0.19.0 / latest-stable)
public string $wpCliVersion
return string