-
·
Given /^save (STDOUT|STDERR) ([’].+[^’])?s?as {(w+)}$/
Store STDOUT or STDERR contents in a variable. Usage Scenario: My example scenario When I run `wp package path` Then save STDOUT as {PACKAGE_PATH} Scenario: My other scenario When I run `wp core download` Then save STDOUT ‘Downloading WordPress ([\d\.]+)’ as {VERSION} Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line…
-
·
Given /^save the (.+) file ([’].+[^’])?as {(w+)}$/
Stores the contents of the given file in a variable. Usage Scenario: My example scenario Given a WP installation with Composer And save the {RUN_DIR}/composer.json file as {COMPOSER_JSON} Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way.…
-
·
Given /^that HTTP requests to (.*?) will respond with:$/
Mock HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. requests to a given URLURL A specific web address…
-
·
Given /^a WP( d[^s]+)? install(?:ation)?$/
Installs WordPress. Usage Scenario: My example scenario Given a WP installation … Scenario: My other scenario Given a WP install … Scenario: My version-specific scenario Given a WP 6.4.2 installation … Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in…
-
·
Given /^a WP multisite (subdirectory|subdomain)?s?(install|installation)$/
Installs WordPress MultisiteMultisite Multisite is a WordPress feature which allows users to create a network of sites on a single WordPress installation. Available since WordPress version 3.0, Multisite is a continuation of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued and its features were included into WordPress core. Advanced Administration Handbook -> Create…
-
·
Given an empty cache
Clears the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/ cache directory. Usage Scenario: My example scenario Given an empty cache … Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements,…
-
·
Given an empty directory
Creates an empty directory. Usage Scenario: My example scenario Given an empty directory … Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/ codebase on every release. To suggest improvements, please…
-
·
Given /^an? (empty|non-existent) ([^s]+) directory$/
Creates or deletes a specific directory. Usage Scenario: My example scenario Given an empty foo-plugin directory And a non-existent bar-plugin directory … Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/…
-
·
Given these installed and active plugins:
Installs and activates one or more plugins. Usage Scenario: My example scenario Given a WP installation And these installed and active plugins: “”” akismet wordpress-importer “”” Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project…
-
·
Given /^an? ([^s]+) (file|cache file):$/
Creates a file with the given contents. Usage The file can be created either in the current working directory or in the cache directory. Scenario: My example scenario Given a wp-cli.yml file: “”” @foo: path: foo user: admin “”” Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,…