@@ -48,7 +48,14 @@ Feature: Scaffold WP-CLI commands
48
48
And the {PACKAGE_PATH}/local/wp-cli/foo/.github/PULL_REQUEST_TEMPLATE file should exist
49
49
And the {PACKAGE_PATH}/local/wp-cli/foo/.github/ISSUE_TEMPLATE file should exist
50
50
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`
52
59
Then STDOUT should be:
53
60
"""
54
61
Success: Hello World!
@@ -125,8 +132,8 @@ Feature: Scaffold WP-CLI commands
125
132
And the custom-directory/wp-cli.yml file should exist
126
133
And the custom-directory/.travis.yml file should not exist
127
134
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`
130
137
Then STDOUT should be:
131
138
"""
132
139
Success: Hello World!
@@ -193,8 +200,8 @@ Feature: Scaffold WP-CLI commands
193
200
And the {PACKAGE_PATH}/local/wp-cli/with-tests/wp-cli.yml file should exist
194
201
And the {PACKAGE_PATH}/local/wp-cli/with-tests/.travis.yml file should exist
195
202
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`
198
205
Then STDOUT should be:
199
206
"""
200
207
Success: Hello World!
0 commit comments