Свойство | Type | Description | |
---|---|---|---|
$bootPath | string | ||
$config | array | ||
$executor | tad\WPBrowser\Environment\Executor | ||
$options | array | ||
$prettyName | string | ||
$requiredFields | { | ||
$wpCliRoot | string |
Méthode | Description | |
---|---|---|
__construct ( Codeception\Lib\ModuleContainer $moduleContainer, null | array $config, tad\WPBrowser\Environment\Executor $executor = null ) | WPCLI constructor. | |
cli ( string $userCommand = 'core version', &$output = [] ) : integer | Executes a wp-cli command. | |
cliToArray ( string $userCommand = 'post list --format=ids', callable $splitCallback = null ) : array | Returns the output of a wp-cli command as an array. |
Méthode | Description | |
---|---|---|
buildCommand ( $userCommand ) : string | ||
debugSection ( string $title, string $message ) | ||
evaluateStatus ( &$output, $status ) | ||
initPaths ( ) | ||
initWpCliPaths ( ) | Initializes the wp-cli root location. | |
mergeCommandOptions ( string $userCommand ) : string |
public __construct ( Codeception\Lib\ModuleContainer $moduleContainer, null | array $config, tad\WPBrowser\Environment\Executor $executor = null ) | ||
$moduleContainer | Codeception\Lib\ModuleContainer | |
$config | null | array | |
$executor | tad\WPBrowser\Environment\Executor |
protected buildCommand ( $userCommand ) : string | ||
$userCommand | ||
Résultat | string |
public cli ( string $userCommand = 'core version', &$output = [] ) : integer | ||
$userCommand | string | The string of command and parameters as it would be passed to wp-cli e.g. a terminal call like `wp core version` becomes `core version` omitting the call to wp-cli script. |
Résultat | integer | wp-cli exit value for the command |
protected debugSection ( string $title, string $message ) | ||
$title | string | |
$message | string |
protected initWpCliPaths ( ) |
protected mergeCommandOptions ( string $userCommand ) : string | ||
$userCommand | string | |
Résultat | string |
protected Executor,tad\WPBrowser\Environment $executor | ||
Résultat | tad\WPBrowser\Environment\Executor |