diff --git a/features/scaffold-package-readme.feature b/features/scaffold-package-readme.feature index d1b09bf..6c12925 100644 --- a/features/scaffold-package-readme.feature +++ b/features/scaffold-package-readme.feature @@ -40,7 +40,7 @@ Feature: Scaffold a README.md file for an existing package And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should exist And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should contain: """ - Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`. + Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with `wp cli update`. """ And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should contain: """ @@ -76,7 +76,7 @@ Feature: Scaffold a README.md file for an existing package And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should exist And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should contain: """ - Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`. + Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with `wp cli update`. """ And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should contain: """ @@ -152,10 +152,10 @@ Feature: Scaffold a README.md file for an existing package "files": [ "command.php" ] }, "require": { - "wp-cli/wp-cli": "^2.5" + "wp-cli/wp-cli": "^2.11" }, "require-dev": { - "wp-cli/wp-cli-tests": "^3.0.11" + "wp-cli/wp-cli-tests": "^4.3.9" }, "extra": { "readme": { @@ -333,7 +333,7 @@ Feature: Scaffold a README.md file for an existing package }, "require-dev": { "wp-cli/wp-cli": "*", - "wp-cli/wp-cli-tests": "^3.0.11" + "wp-cli/wp-cli-tests": "^4.3.9" }, "extra": { "bundled": true diff --git a/features/scaffold-package.feature b/features/scaffold-package.feature index 3a5dee6..9c37eae 100644 --- a/features/scaffold-package.feature +++ b/features/scaffold-package.feature @@ -34,7 +34,7 @@ Feature: Scaffold WP-CLI commands And the {PACKAGE_PATH}/local/wp-cli/foo/composer.json file should contain: """ "require": { - "wp-cli/wp-cli": "^2.5" + "wp-cli/wp-cli": "^2.11" }, """ And the {PACKAGE_PATH}/local/wp-cli/foo/hello-world-command.php file should exist @@ -159,7 +159,7 @@ Feature: Scaffold WP-CLI commands s """ - When I run `wp scaffold package wp-cli/same-package --skip-tests --skip-github` + When I try `wp scaffold package wp-cli/same-package --skip-tests --skip-github` Then STDOUT should contain: """ Success: Created package files @@ -176,7 +176,7 @@ Feature: Scaffold WP-CLI commands """ And the return code should be 0 - When I run `wp package uninstall wp-cli/same-package` + When I try `wp package uninstall wp-cli/same-package` Then STDOUT should contain: """ Success: Uninstalled package. diff --git a/src/ScaffoldPackageCommand.php b/src/ScaffoldPackageCommand.php index 1ab88d3..e126d24 100644 --- a/src/ScaffoldPackageCommand.php +++ b/src/ScaffoldPackageCommand.php @@ -43,13 +43,13 @@ class ScaffoldPackageCommand { * [--require_wp_cli=] * : Required WP-CLI version for the package. * --- - * default: ^2.5 + * default: ^2.11 * --- * * [--require_wp_cli_tests=] * : Required WP-CLI testing framework version for the package. * --- - * default: ^3.0.11 + * default: ^4.3.9 * --- * [--skip-tests]