最近更新的页面
Given an empty cache
Clears the WP-CLI cache directory. Usage Scenario: My example scenario Given an empty cache ....
Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory
Installs WordPress with Composer and a custom vendor directory. Usage Scenario: My example scenar...
Given a WP install(ation) with Composer
Installs WordPress with Composer. Usage Scenario: My example scenario Given a WP installation w...
Given a PHP built-in web server to serve :subdir
Start a PHP built-in web server in the given subdirectory. Usage Scenario: My example scenario ...
Given a PHP built-in web server
Start a PHP built-in web server in the current directory. Usage Scenario: My example scenario G...
Given a misconfigured WP_CONTENT_DIR constant directory
Modify wp-config.php to set WP_CONTENT_DIR to an empty string. Usage Scenario: My example scenar...
Given a dependency on current wp-cli
Add wp-cli/wp-cli as a Composer dependency. Usage Scenario: My example scenario Given a WP ins...
Given a database
Creates an empty database. Usage Has no effect when tests run with SQLite. Scenario: My example s...
Given a custom wp-content directory
Configure a custom wp-content directory. Usage Defines the WP_CONTENT_DIR, WP_PLUGIN_DIR, and ...
Given /^that HTTP requests to (.*?) will respond with:$/
Mock HTTP requests to a given URL. Usage Scenario: My example scenario Given that HTTP requests...
Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/
Stores the contents of the given file in a variable. Usage Scenario: My example scenario Given ...
Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/
Store STDOUT or STDERR contents in a variable. Usage Scenario: My example scenario When I run `...
Given /^an? (empty|non-existent) ([^\s]+) directory$/
Creates or deletes a specific directory. Usage Scenario: My example scenario Given an empty foo...
Given /^an? ("[^"]+"|[^\s]+) (file|cache file):$/
Creates a file with the given contents. Usage The file can be created either in the current worki...
Given /^a WP( \d[^\s]+)? install(?:ation)?$/
Installs WordPress. Usage Scenario: My example scenario Given a WP installation ... Scenario:...
Given /^a WP( [^\s]+)? install(?:ation)? in ['"]?([^'"]+)['"]?$/
Installs WordPress in a given directory. Usage Scenario: My example scenario Given a WP install...
Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/
Installs WordPress Multisite. Usage Supports either subdirectory or subdomain installation. Scena...
Given /^a new Phar with (?:the same version|version "([^"]+)")$/
Build a new WP-CLI Phar file with a given version. Usage Scenario: My example scenario Given an...
Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/
Download a specific WP-CLI Phar version from GitHub. Usage Scenario: My example scenario Given ...
Given /^"([^"]+)" replaced with "([^"]+)" in the ([^\s]+) file$/
Search and replace a string in a file using regex. Usage Scenario: My example scenario Given "F...