Skip to content

Commit

Permalink
Merge pull request #92 from wp-cli/fix-behat-test-on-mac
Browse files Browse the repository at this point in the history
Fix Behat test on Mac OS X (RUN_DIR prefixed with /private)
  • Loading branch information
schlessera authored Aug 7, 2018
2 parents fc590ec + 62d05ee commit 0b0dcd1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions features/package-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1087,17 +1087,27 @@ Feature: Install WP-CLI packages

When I try `wp package install package-dir-bad-composer`
Then the return code should be 1
And STDERR should be:
And STDERR should contain:
"""
Error: Invalid package: failed to parse composer.json file
"""
# Split string up to get around Mac OS X inconsistencies with RUN_DIR
And STDERR should contain:
"""
Error: Invalid package: failed to parse composer.json file '{RUN_DIR}/package-dir-bad-composer/composer.json' as json.
/package-dir-bad-composer/composer.json' as json.
"""
And STDOUT should be empty

When I try `wp package install package-dir`
Then the return code should be 1
And STDERR should be:
And STDERR should contain:
"""
Error: Invalid package: no name in composer.json file
"""
# Split string up to get around Mac OS X inconsistencies with RUN_DIR
And STDERR should contain:
"""
Error: Invalid package: no name in composer.json file '{RUN_DIR}/package-dir/composer.json'.
/package-dir/composer.json'.
"""
And STDOUT should be empty

Expand Down

0 comments on commit 0b0dcd1

Please sign in to comment.