Skip to content

Commit ac64ad9

Browse files
authored
Merge pull request #253 from wp-cli/try/fix-coverage
Fix code coverage collection test
2 parents bdd0a2c + 1874b86 commit ac64ad9

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

features/scaffold-package-readme.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Feature: Scaffold a README.md file for an existing package
4040
And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should exist
4141
And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should contain:
4242
"""
43-
Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`.
43+
Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with `wp cli update`.
4444
"""
4545
And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should contain:
4646
"""
@@ -76,7 +76,7 @@ Feature: Scaffold a README.md file for an existing package
7676
And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should exist
7777
And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should contain:
7878
"""
79-
Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`.
79+
Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with `wp cli update`.
8080
"""
8181
And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should contain:
8282
"""
@@ -152,10 +152,10 @@ Feature: Scaffold a README.md file for an existing package
152152
"files": [ "command.php" ]
153153
},
154154
"require": {
155-
"wp-cli/wp-cli": "^2.5"
155+
"wp-cli/wp-cli": "^2.11"
156156
},
157157
"require-dev": {
158-
"wp-cli/wp-cli-tests": "^3.0.11"
158+
"wp-cli/wp-cli-tests": "^4.3.9"
159159
},
160160
"extra": {
161161
"readme": {
@@ -333,7 +333,7 @@ Feature: Scaffold a README.md file for an existing package
333333
},
334334
"require-dev": {
335335
"wp-cli/wp-cli": "*",
336-
"wp-cli/wp-cli-tests": "^3.0.11"
336+
"wp-cli/wp-cli-tests": "^4.3.9"
337337
},
338338
"extra": {
339339
"bundled": true

features/scaffold-package.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Scaffold WP-CLI commands
3434
And the {PACKAGE_PATH}/local/wp-cli/foo/composer.json file should contain:
3535
"""
3636
"require": {
37-
"wp-cli/wp-cli": "^2.5"
37+
"wp-cli/wp-cli": "^2.11"
3838
},
3939
"""
4040
And the {PACKAGE_PATH}/local/wp-cli/foo/hello-world-command.php file should exist
@@ -159,7 +159,7 @@ Feature: Scaffold WP-CLI commands
159159
s
160160
"""
161161

162-
When I run `wp scaffold package wp-cli/same-package --skip-tests --skip-github`
162+
When I try `wp scaffold package wp-cli/same-package --skip-tests --skip-github`
163163
Then STDOUT should contain:
164164
"""
165165
Success: Created package files
@@ -176,7 +176,7 @@ Feature: Scaffold WP-CLI commands
176176
"""
177177
And the return code should be 0
178178
179-
When I run `wp package uninstall wp-cli/same-package`
179+
When I try `wp package uninstall wp-cli/same-package`
180180
Then STDOUT should contain:
181181
"""
182182
Success: Uninstalled package.

src/ScaffoldPackageCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class ScaffoldPackageCommand {
4343
* [--require_wp_cli=<version>]
4444
* : Required WP-CLI version for the package.
4545
* ---
46-
* default: ^2.5
46+
* default: ^2.11
4747
* ---
4848
*
4949
* [--require_wp_cli_tests=<version>]
5050
* : Required WP-CLI testing framework version for the package.
5151
* ---
52-
* default: ^3.0.11
52+
* default: ^4.3.9
5353
* ---
5454
5555
* [--skip-tests]

0 commit comments

Comments
 (0)