@@ -52,7 +52,7 @@ WP-CLI `packages/local/` directory.
5252 [--require_wp_cli=<version>]
5353 Required WP-CLI version for the package.
5454 ---
55- default: >= 1.1.0
55+ default: ^ 1.1.0
5656 ---
5757
5858 [--skip-tests]
@@ -75,9 +75,9 @@ wp scaffold package-tests <dir> [--ci=<provider>] [--force]
7575~~~
7676
7777WP-CLI makes use of a Behat-based testing framework, which you should use
78- too. Functional tests are an integral ingredient of highly-quality,
79- maintainable commands. Behat is a great choice as a testing framework
80- because:
78+ too. This command generates all of the files you need. Functional tests
79+ are an integral ingredient of highly-quality, maintainable commands.
80+ Behat is a great choice as a testing framework because:
8181
8282* It’s easy to write new tests, which means they’ll actually get written.
8383* The tests interface with your command in the same manner as your users
@@ -106,8 +106,16 @@ Functional tests typically follow this pattern:
106106* ** When** a user performs a specific action,
107107* ** Then** the end result should be X (and Y and Z).
108108
109- This command generates all of the files needed for you to write Behat
110- tests for your own command. Specifically:
109+ View all defined Behat steps available for use with ` behat -dl ` :
110+
111+ ```
112+ Given /^an empty directory$/
113+ Given /^an empty cache/
114+ Given /^an? ([^\s]+) file:$/
115+ Given /^"([^"]+)" replaced with "([^"]+)" in the ([^\s]+) file$/
116+ ```
117+
118+ The files generated by this command include:
111119
112120* ` .travis.yml ` is the configuration file for Travis CI.
113121* ` bin/install-package-tests.sh ` will configure your environment to run
0 commit comments