Skip to content

Commit 3bb6883

Browse files
committed
Update tests
1 parent 677c34d commit 3bb6883

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

features/package-install.feature

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,9 @@ Feature: Install WP-CLI packages
474474
Scenario: Install a package from Git using a shortened package identifier
475475
Given an empty directory
476476
477-
When I run `wp package install wp-cli-test/github-test-command`
478-
Then STDOUT should contain:
477+
When I try `wp package install wp-cli-test/github-test-command`
478+
Then the return code should be 0
479+
And STDOUT should contain:
479480
"""
480481
Installing package wp-cli-test/github-test-command (dev-master)
481482
"""
@@ -792,7 +793,7 @@ Feature: Install WP-CLI packages
792793
"""
793794
Warning: Package name mismatch...Updating from git name 'GeekPress/wp-rocket-cli' to composer.json name 'wp-media/wp-rocket-cli'.
794795
"""
795-
And STDOUT should match /Installing package wp-media\/wp-rocket-cli \(dev-/
796+
And STDOUT should match /Installing package wp-media\/wp-rocket-cli \([^)]+\)/
796797
# This path is sometimes changed on Macs to prefix with /private
797798
And STDOUT should contain:
798799
"""

0 commit comments

Comments
 (0)