@@ -28,10 +28,10 @@ Feature: Update WP-CLI packages
2828 Scenario : Update a package with an update available
2929 Given an empty directory
3030
31- When I run `wp package install wp-cli-test/updateable-package:v1 .0.0`
31+ When I run `wp package install wp-cli-test/updateable-package:v3 .0.0`
3232 Then STDOUT should contain:
3333 """
34- Installing package wp-cli-test/updateable-package (v1 .0.0)
34+ Installing package wp-cli-test/updateable-package (v3 .0.0)
3535 """
3636 And STDOUT should contain:
3737 """
@@ -41,13 +41,13 @@ Feature: Update WP-CLI packages
4141 When I run `cat {PACKAGE_PATH}/composer.json`
4242 Then STDOUT should contain:
4343 """
44- "wp-cli-test/updateable-package": "v1 .0.0"
44+ "wp-cli-test/updateable-package": "v3 .0.0"
4545 """
4646
47- When I run `wp help updateable-package v1 `
47+ When I run `wp help updateable-package v3 `
4848 Then STDOUT should contain:
4949 """
50- wp updateable-package v1
50+ wp updateable-package v3
5151 """
5252
5353 When I run `wp package update`
@@ -62,13 +62,13 @@ Feature: Update WP-CLI packages
6262 | name | update |
6363 | wp -cli -test /updateable -package | available |
6464
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`
65+ When I run `wp eval "file_put_contents( '{PACKAGE_PATH}composer.json', str_replace( 'v3 .0.0', '>=3 .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`
6969 Then STDOUT should contain:
7070 """
71- "wp-cli-test/updateable-package": ">=1 .0.0"
71+ "wp-cli-test/updateable-package": ">=3 .0.0"
7272 """
7373
7474 When I run `wp package list --fields=name,update`
@@ -102,7 +102,7 @@ Feature: Update WP-CLI packages
102102 Scenario : Update a specific package by name
103103 Given an empty directory
104104
105- When I run `wp package install wp-cli-test/updateable-package:v1 .0.0`
105+ When I run `wp package install wp-cli-test/updateable-package:v3 .0.0`
106106 Then STDOUT should contain:
107107 """
108108 Success: Package installed.
@@ -114,7 +114,7 @@ Feature: Update WP-CLI packages
114114 Success: Package installed.
115115 """
116116
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`
117+ When I run `wp eval "file_put_contents( '{PACKAGE_PATH}composer.json', str_replace( 'v3 .0.0', '>=3 .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`
@@ -135,7 +135,7 @@ Feature: Update WP-CLI packages
135135 Scenario : Update multiple specific packages by name
136136 Given an empty directory
137137
138- When I run `wp package install wp-cli-test/updateable-package:v1 .0.0`
138+ When I run `wp package install wp-cli-test/updateable-package:v3 .0.0`
139139 Then STDOUT should contain:
140140 """
141141 Success: Package installed.
@@ -147,7 +147,7 @@ Feature: Update WP-CLI packages
147147 Success: Package installed.
148148 """
149149
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`
150+ When I run `wp eval "file_put_contents( '{PACKAGE_PATH}composer.json', str_replace( 'v3 .0.0', '>=3 .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