Skip to content

Commit 0479995

Browse files
committed
Update versions used in tests
1 parent b8e5d35 commit 0479995

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

features/cli.feature

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,38 +71,38 @@ Feature: `wp cli` tasks
7171
"""
7272

7373
@github-api
74-
Scenario: Patch update from 0.14.0 to 0.14.1
74+
Scenario: Patch update from 2.8.0 to 2.8.1
7575
Given an empty directory
76-
And a new Phar with version "0.14.0"
76+
And a new Phar with version "2.8.0"
7777

7878
When I run `{PHAR_PATH} --version`
7979
Then STDOUT should be:
8080
"""
81-
WP-CLI 0.14.0
81+
WP-CLI 2.8.0
8282
"""
8383

8484
When I run `{PHAR_PATH} cli update --patch --yes`
8585
Then STDOUT should contain:
8686
"""
87-
md5 hash verified: 3f5fa2fda8457a9a5dc9875f17a3716d
87+
md5 hash verified: a0cf91756fd46903c83c436ec1d462eb
8888
"""
8989
And STDOUT should contain:
9090
"""
91-
Success: Updated WP-CLI to 0.14.1
91+
Success: Updated WP-CLI to 2.8.1
9292
"""
9393
And STDERR should be empty
9494
And the return code should be 0
9595

9696
When I run `{PHAR_PATH} --version`
9797
Then STDOUT should be:
9898
"""
99-
WP-CLI 0.14.1
99+
WP-CLI 2.8.1
100100
"""
101101

102102
@github-api
103-
Scenario: Not a patch update from 0.14.0
103+
Scenario: Not a patch update from 2.8.0
104104
Given an empty directory
105-
And a new Phar with version "0.14.0"
105+
And a new Phar with version "2.8.0"
106106

107107
When I run `{PHAR_PATH} cli update --no-patch --yes`
108108
Then STDOUT should contain:
@@ -111,15 +111,14 @@ Feature: `wp cli` tasks
111111
"""
112112
And STDOUT should not contain:
113113
"""
114-
0.14.1
114+
2.8.1
115115
"""
116116
And STDERR should be empty
117117
And the return code should be 0
118118

119-
@require-php-5.6
120119
Scenario: Install WP-CLI nightly
121120
Given an empty directory
122-
And a new Phar with version "0.14.0"
121+
And a new Phar with version "2.8.0"
123122

124123
When I run `{PHAR_PATH} cli update --nightly --yes`
125124
Then STDOUT should contain:
@@ -137,7 +136,7 @@ Feature: `wp cli` tasks
137136
@github-api
138137
Scenario: Install WP-CLI stable
139138
Given an empty directory
140-
And a new Phar with version "0.14.0"
139+
And a new Phar with version "2.8.0"
141140
And a session file:
142141
"""
143142
y
@@ -150,7 +149,7 @@ Feature: `wp cli` tasks
150149
When I run `{PHAR_PATH} cli update --stable < session`
151150
Then STDOUT should contain:
152151
"""
153-
You have version 0.14.0. Would you like to update to the latest stable release? [y/n]
152+
You have version 2.8.0. Would you like to update to the latest stable release? [y/n]
154153
"""
155154
And STDOUT should contain:
156155
"""

features/package.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Install WP-CLI packages
66

77
Scenario: Install a package requiring a WP-CLI version that doesn't match
88
Given an empty directory
9-
And a new Phar with version "0.23.0"
9+
And a new Phar with version "2.8.0"
1010
And a path-command/command.php file:
1111
"""
1212
<?php
@@ -25,7 +25,7 @@ Feature: Install WP-CLI packages
2525
"files": [ "command.php" ]
2626
},
2727
"require": {
28-
"wp-cli/wp-cli": ">=0.24.0"
28+
"wp-cli/wp-cli": ">=2.9.0"
2929
},
3030
"require-dev": {
3131
"behat/behat": "~2.5"
@@ -44,7 +44,7 @@ Feature: Install WP-CLI packages
4444
"""
4545
And STDOUT should contain:
4646
"""
47-
wp-cli/wp-cli >=0.24.0 -> satisfiable by
47+
wp-cli/wp-cli >=2.9.0 -> satisfiable by
4848
"""
4949
And STDERR should contain:
5050
"""
@@ -55,12 +55,12 @@ Feature: Install WP-CLI packages
5555
When I run `cat {PACKAGE_PATH}composer.json`
5656
Then STDOUT should contain:
5757
"""
58-
"version": "0.23.0",
58+
"version": "2.8.0",
5959
"""
6060

6161
Scenario: Install a package requiring a WP-CLI version that does match
6262
Given an empty directory
63-
And a new Phar with version "0.23.0"
63+
And a new Phar with version "2.8.0"
6464
And a path-command/command.php file:
6565
"""
6666
<?php
@@ -79,7 +79,7 @@ Feature: Install WP-CLI packages
7979
"files": [ "command.php" ]
8080
},
8181
"require": {
82-
"wp-cli/wp-cli": ">=0.22.0"
82+
"wp-cli/wp-cli": ">=2.7.0"
8383
},
8484
"require-dev": {
8585
"behat/behat": "~2.5"
@@ -98,12 +98,12 @@ Feature: Install WP-CLI packages
9898
When I run `cat {PACKAGE_PATH}composer.json`
9999
Then STDOUT should contain:
100100
"""
101-
"version": "0.23.0",
101+
"version": "2.8.0",
102102
"""
103103

104104
Scenario: Install a package requiring a WP-CLI alpha version that does match
105105
Given an empty directory
106-
And a new Phar with version "0.23.0-alpha-90ecad6"
106+
And a new Phar with version "2.8.0-alpha-90ecad6"
107107
And a path-command/command.php file:
108108
"""
109109
<?php
@@ -122,7 +122,7 @@ Feature: Install WP-CLI packages
122122
"files": [ "command.php" ]
123123
},
124124
"require": {
125-
"wp-cli/wp-cli": ">=0.22.0"
125+
"wp-cli/wp-cli": ">=2.7.0"
126126
},
127127
"require-dev": {
128128
"behat/behat": "~2.5"
@@ -141,5 +141,5 @@ Feature: Install WP-CLI packages
141141
When I run `cat {PACKAGE_PATH}composer.json`
142142
Then STDOUT should contain:
143143
"""
144-
"version": "0.23.0-alpha",
144+
"version": "2.8.0-alpha",
145145
"""

0 commit comments

Comments
 (0)