Skip to content

Commit e9a068f

Browse files
committed
Run composer install before testing command
1 parent 11a7cf3 commit e9a068f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/scaffold-package.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Feature: Scaffold WP-CLI commands
125125
And the custom-directory/wp-cli.yml file should exist
126126
And the custom-directory/.travis.yml file should not exist
127127

128+
When I run `composer --working-dir=custom-directory/ install`
128129
When I run `wp --require=custom-directory/hello-world-command.php hello-world`
129130
Then STDOUT should be:
130131
"""
@@ -192,6 +193,7 @@ Feature: Scaffold WP-CLI commands
192193
And the {PACKAGE_PATH}/local/wp-cli/with-tests/wp-cli.yml file should exist
193194
And the {PACKAGE_PATH}/local/wp-cli/with-tests/.travis.yml file should exist
194195
196+
When I run `composer --working-dir={PACKAGE_PATH}/local/wp-cli/with-tests/ install`
195197
When I run `wp --require={PACKAGE_PATH}/local/wp-cli/with-tests/hello-world-command.php hello-world`
196198
Then STDOUT should be:
197199
"""

0 commit comments

Comments
 (0)