From c224674fd2e03bb3b5227a03426cfc6a86421261 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 03:57:02 +0100 Subject: [PATCH] Use cached plugin and theme installs in tests 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..0910df5b 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": "^5.4.0" }, "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: """