@@ -37,7 +37,7 @@ Feature: Scaffold WP-CLI commands
37
37
"wp-cli/wp-cli": "^2.5"
38
38
},
39
39
"""
40
- And the {PACKAGE_PATH}/local/wp-cli/foo/command.php file should exist
40
+ And the {PACKAGE_PATH}/local/wp-cli/foo/hello-world- command.php file should exist
41
41
And the {PACKAGE_PATH}/local/wp-cli/foo/CONTRIBUTING.md file should exist
42
42
And the {PACKAGE_PATH}/local/wp-cli/foo/CONTRIBUTING.md file should contain:
43
43
"""
@@ -48,17 +48,17 @@ 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/command.php hello-world`
51
+ When I run `wp --require={PACKAGE_PATH}/local/wp-cli/foo/hello-world- command.php hello-world`
52
52
Then STDOUT should be:
53
53
"""
54
- Success: Hello world.
54
+ Success: Hello world!
55
55
"""
56
56
57
57
When I run `cat {PACKAGE_PATH}/local/wp-cli/foo/wp-cli.yml`
58
58
Then STDOUT should contain:
59
59
"""
60
60
require:
61
- - command.php
61
+ - hello-world- command.php
62
62
"""
63
63
64
64
When I run `cat {PACKAGE_PATH}/local/wp-cli/foo/.gitignore`
@@ -91,7 +91,7 @@ Feature: Scaffold WP-CLI commands
91
91
When I run `wp hello-world`
92
92
Then STDOUT should be:
93
93
"""
94
- Success: Hello world.
94
+ Success: Hello world!
95
95
"""
96
96
97
97
When I run `wp package uninstall wp-cli/without-require`
@@ -121,14 +121,14 @@ Feature: Scaffold WP-CLI commands
121
121
And the custom-directory/.gitignore file should exist
122
122
And the custom-directory/.editorconfig file should exist
123
123
And the custom-directory/composer.json file should exist
124
- And the custom-directory/command.php file should exist
124
+ And the custom-directory/hello-world- command.php file should exist
125
125
And the custom-directory/wp-cli.yml file should exist
126
126
And the custom-directory/.travis.yml file should not exist
127
127
128
- When I run `wp --require=custom-directory/command.php hello-world`
128
+ When I run `wp --require=custom-directory/hello-world- command.php hello-world`
129
129
Then STDOUT should be:
130
130
"""
131
- Success: Hello world.
131
+ Success: Hello world!
132
132
"""
133
133
When I run `wp package uninstall wp-cli/custom-directory`
134
134
Then STDOUT should contain:
@@ -187,14 +187,14 @@ Feature: Scaffold WP-CLI commands
187
187
And the {PACKAGE_PATH}/local/wp-cli/with-tests/.gitignore file should exist
188
188
And the {PACKAGE_PATH}/local/wp-cli/with-tests/.editorconfig file should exist
189
189
And the {PACKAGE_PATH}/local/wp-cli/with-tests/composer.json file should exist
190
- And the {PACKAGE_PATH}/local/wp-cli/with-tests/command.php file should exist
190
+ And the {PACKAGE_PATH}/local/wp-cli/with-tests/hello-world- command.php file should exist
191
191
And the {PACKAGE_PATH}/local/wp-cli/with-tests/wp-cli.yml file should exist
192
192
And the {PACKAGE_PATH}/local/wp-cli/with-tests/.travis.yml file should exist
193
193
194
- When I run `wp --require={PACKAGE_PATH}/local/wp-cli/with-tests/command.php hello-world`
194
+ When I run `wp --require={PACKAGE_PATH}/local/wp-cli/with-tests/hello-world- command.php hello-world`
195
195
Then STDOUT should be:
196
196
"""
197
- Success: Hello world.
197
+ Success: Hello world!
198
198
"""
199
199
When I run `wp package uninstall wp-cli/with-tests`
200
200
Then STDOUT should contain:
0 commit comments