From 3d917912a1bf35d3ce6292e4e611165b07a0612b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 4 Aug 2026 17:28:11 +0200 Subject: [PATCH 1/2] Fix tests after framework version bump --- features/scaffold-package-readme.feature | 12 ++++++------ features/scaffold-package.feature | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/features/scaffold-package-readme.feature b/features/scaffold-package-readme.feature index 86825be..9d23156 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.13 or greater. Update to the latest stable release with `wp cli update`. + Installing this package requires WP-CLI v3.0 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: """ @@ -80,7 +80,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.13 or greater. Update to the latest stable release with `wp cli update`. + Installing this package requires WP-CLI v3.0 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: """ @@ -164,7 +164,7 @@ Feature: Scaffold a README.md file for an existing package "files": [ "command.php" ] }, "require": { - "wp-cli/wp-cli": "^2.13" + "wp-cli/wp-cli": "^3.0" }, "require-dev": { "wp-cli/wp-cli-tests": "^5.0.0" @@ -403,7 +403,7 @@ Feature: Scaffold a README.md file for an existing package "files": [ "command.php" ] }, "require": { - "wp-cli/wp-cli": "^2.13" + "wp-cli/wp-cli": "^3.0" }, "require-dev": { "wp-cli/wp-cli-tests": "^5.0.0" @@ -559,7 +559,7 @@ Feature: Scaffold a README.md file for an existing package "description": "A test package.", "license": "MIT", "require": { - "wp-cli/wp-cli": "^2.13" + "wp-cli/wp-cli": "^3.0" } } """ @@ -585,7 +585,7 @@ Feature: Scaffold a README.md file for an existing package "description": "A test package.", "license": "MIT", "require": { - "wp-cli/wp-cli": "^2.13" + "wp-cli/wp-cli": "^3.0" } } """ diff --git a/features/scaffold-package.feature b/features/scaffold-package.feature index 7d20125..1020217 100644 --- a/features/scaffold-package.feature +++ b/features/scaffold-package.feature @@ -43,7 +43,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.13" + "wp-cli/wp-cli": "^3.0" }, """ And the {PACKAGE_PATH}/local/wp-cli/foo/hello-world-command.php file should exist From 9af3510cf468d311f0601578e2c1a25ce9584d76 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 4 Aug 2026 17:36:17 +0200 Subject: [PATCH 2/2] Update default version --- README.md | 2 +- src/ScaffoldPackageCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81d3fa2..c710519 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ WP-CLI `packages/local/` directory. [--require_wp_cli=] Required WP-CLI version for the package. --- - default: ^2.13 + default: ^3.0 --- [--require_wp_cli_tests=] diff --git a/src/ScaffoldPackageCommand.php b/src/ScaffoldPackageCommand.php index b6957e0..e9cb4e8 100644 --- a/src/ScaffoldPackageCommand.php +++ b/src/ScaffoldPackageCommand.php @@ -70,7 +70,7 @@ class ScaffoldPackageCommand { * [--require_wp_cli=] * : Required WP-CLI version for the package. * --- - * default: ^2.13 + * default: ^3.0 * --- * * [--require_wp_cli_tests=]