@@ -62,7 +62,7 @@ Feature: Update WP-CLI packages
6262 | name | update |
6363 | wp -cli -test /updateable -package | available |
6464
65- When I run `sed -i.bak s/ v1.0.0/\ >=1.0.0/g {PACKAGE_PATH}/ composer.json`
65+ When I run `wp eval "file_put_contents( '{PACKAGE_PATH}composer.json', str_replace( ' v1.0.0', ' >=1.0.0', file_get_contents( ' {PACKAGE_PATH}composer.json' ) ) );" --skip-wordpress `
6666 Then the return code should be 0
6767
6868 When I run `cat {PACKAGE_PATH}/composer.json`
@@ -114,7 +114,7 @@ Feature: Update WP-CLI packages
114114 Success: Package installed.
115115 """
116116
117- When I run `sed -i.bak s/ v1.0.0/\ >=1.0.0/g {PACKAGE_PATH}/ composer.json`
117+ When I run `wp eval "file_put_contents( '{PACKAGE_PATH}composer.json', str_replace( ' v1.0.0', ' >=1.0.0', file_get_contents( ' {PACKAGE_PATH}composer.json' ) ) );" --skip-wordpress `
118118 Then the return code should be 0
119119
120120 When I run `wp package update wp-cli-test/updateable-package`
@@ -147,7 +147,7 @@ Feature: Update WP-CLI packages
147147 Success: Package installed.
148148 """
149149
150- When I run `sed -i.bak s/ v1.0.0/\ >=1.0.0/g {PACKAGE_PATH}/ composer.json`
150+ When I run `wp eval "file_put_contents( '{PACKAGE_PATH}composer.json', str_replace( ' v1.0.0', ' >=1.0.0', file_get_contents( ' {PACKAGE_PATH}composer.json' ) ) );" --skip-wordpress `
151151 Then the return code should be 0
152152
153153 When I run `wp package update wp-cli-test/updateable-package danielbachhuber/wp-cli-reset-post-date-command`
0 commit comments