Skip to content

Commit e278476

Browse files
authored
Merge pull request #151 from wp-cli/fix/composer-output-changes
Adapt test for changed Composer output
2 parents afac00c + 7e78358 commit e278476

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"ext-json": "*",
16-
"composer/composer": "^1.10.23 || ^2.1.9",
16+
"composer/composer": "^1.10.23 || ~2.2.17",
1717
"wp-cli/wp-cli": "^2.5"
1818
},
1919
"require-dev": {

features/package-install.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Feature: Install WP-CLI packages
544544
"""
545545
Warning: Package name mismatch...Updating from git name 'GeekPress/wp-rocket-cli' to composer.json name 'wp-media/wp-rocket-cli'.
546546
"""
547-
And STDOUT should match /Installing package wp-media\/wp-rocket-cli \(dev-trunk\)/
547+
And STDOUT should match /Installing package wp-media\/wp-rocket-cli \(dev-/
548548
# This path is sometimes changed on Macs to prefix with /private
549549
And STDOUT should contain:
550550
"""
@@ -592,7 +592,7 @@ Feature: Install WP-CLI packages
592592
# Install with lowercase name (for BC - no warning) and uninstall with lowercase name (for BC and convenience)
593593
When I run `wp package install geekpress/wp-rocket-cli`
594594
Then STDERR should be empty
595-
And STDOUT should match /Installing package (?:GeekPress|geekpress)\/wp-rocket-cli \(dev-master\)/
595+
And STDOUT should match /Installing package (?:GeekPress|geekpress)\/wp-rocket-cli \(dev-/
596596
# This path is sometimes changed on Macs to prefix with /private
597597
And STDOUT should contain:
598598
"""
@@ -813,7 +813,7 @@ Feature: Install WP-CLI packages
813813
When I run `wp package install https://github.com/wp-cli/google-sitemap-generator-cli/archive/master.zip`
814814
Then STDOUT should contain:
815815
"""
816-
Installing package wp-cli/google-sitemap-generator-cli (dev-master)
816+
Installing package wp-cli/google-sitemap-generator-cli (dev-
817817
"""
818818
# This path is sometimes changed on Macs to prefix with /private
819819
And STDOUT should contain:

0 commit comments

Comments
 (0)