From 4f6d5adb0093bd49bc566c2ef2fa9d13e6836a06 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 30 Oct 2026 22:15:24 +0100 Subject: [PATCH] Test wp-cli/wp-cli-tests#404 Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- features/media-image-size.feature | 15 ++++++++++++--- features/media-prune.feature | 5 ++++- features/media-regenerate.feature | 5 ++++- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 8f5ea655..e459c26b 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require-dev": { "wp-cli/entity-command": "^1.3 || ^2 || ^3", "wp-cli/extension-command": "^2.0 || ^3", - "wp-cli/wp-cli-tests": "^5" + "wp-cli/wp-cli-tests": "dev-cached-extension-installs as 5.3.99" }, "config": { "process-timeout": 7200, diff --git a/features/media-image-size.feature b/features/media-image-size.feature index 2f6fe921..0eed8b90 100644 --- a/features/media-image-size.feature +++ b/features/media-image-size.feature @@ -4,7 +4,10 @@ Feature: List image sizes Scenario: Basic usage Given a WP install # Differing themes can have differing default image sizes. Let's stick to one. - And I try `wp theme install twentynineteen --activate` + And these installed and active themes: + """ + twentynineteen + """ When I run `wp media image-size` Then STDOUT should be a table containing rows: @@ -32,7 +35,10 @@ Feature: List image sizes Scenario: Basic usage with plugin which registers custom image size Given a WP install # Differing themes can have differing default image sizes. Let's stick to one. - And I try `wp theme install twentynineteen --activate` + And these installed and active themes: + """ + twentynineteen + """ And a wp-content/plugins/foo-bar.php file: """