@@ -48,7 +48,14 @@ Feature: Scaffold WP-CLI commands
4848 And the {PACKAGE_PATH}/local/wp-cli/foo/.github/PULL_REQUEST_TEMPLATE file should exist
4949 And the {PACKAGE_PATH}/local/wp-cli/foo/.github/ISSUE_TEMPLATE file should exist
5050
51- When I run `wp --require={PACKAGE_PATH}/local/wp-cli/foo/hello-world-command.php hello-world`
51+ When I run `wp hello-world`
52+ Then STDOUT should be:
53+ """
54+ Success: Hello World!
55+ """
56+
57+ When I run `composer -q -n --working-dir={PACKAGE_PATH}/local/wp-cli/foo/ install`
58+ And I run `wp --require={PACKAGE_PATH}/local/wp-cli/foo/hello-world-command.php hello-world`
5259 Then STDOUT should be:
5360 """
5461 Success: Hello World!
@@ -125,8 +132,8 @@ Feature: Scaffold WP-CLI commands
125132 And the custom-directory/wp-cli.yml file should exist
126133 And the custom-directory/.travis.yml file should not exist
127134
128- When I run `composer --working-dir=custom-directory/ install`
129- When I run `wp --require=custom-directory/hello-world-command.php hello-world`
135+ When I run `composer -q -n - -working-dir=custom-directory/ install`
136+ And I run `wp --require=custom-directory/hello-world-command.php hello-world`
130137 Then STDOUT should be:
131138 """
132139 Success: Hello World!
@@ -193,8 +200,8 @@ Feature: Scaffold WP-CLI commands
193200 And the {PACKAGE_PATH}/local/wp-cli/with-tests/wp-cli.yml file should exist
194201 And the {PACKAGE_PATH}/local/wp-cli/with-tests/.travis.yml file should exist
195202
196- When I run `composer --working-dir={PACKAGE_PATH}/local/wp-cli/with-tests/ install`
197- When I run `wp --require={PACKAGE_PATH}/local/wp-cli/with-tests/hello-world-command.php hello-world`
203+ When I run `composer -q -n - -working-dir={PACKAGE_PATH}/local/wp-cli/with-tests/ install`
204+ And I run `wp --require={PACKAGE_PATH}/local/wp-cli/with-tests/hello-world-command.php hello-world`
198205 Then STDOUT should be:
199206 """
200207 Success: Hello World!
0 commit comments