From 2f6affc1d77b96ca6989148566d1451d6cca2d17 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 03:56:25 +0100 Subject: [PATCH] Use cached plugin and theme installs in tests Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- features/menu-location.feature | 5 ++++- features/user-application-password.feature | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index fcd353184..17c5c7371 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "wp-cli/extension-command": "^1.2 || ^2 || ^3", "wp-cli/media-command": "^1.1 || ^2 || ^3", "wp-cli/super-admin-command": "^1 || ^2 || ^3", - "wp-cli/wp-cli-tests": "^5" + "wp-cli/wp-cli-tests": "^5.4.0" }, "config": { "process-timeout": 7200, diff --git a/features/menu-location.feature b/features/menu-location.feature index 1568eafd7..1b3a61be8 100644 --- a/features/menu-location.feature +++ b/features/menu-location.feature @@ -3,7 +3,10 @@ Feature: Manage WordPress menu locations Background: Given a WP install And I run `wp theme delete --all --force` - And I run `wp theme install twentytwelve --activate` + And these installed and active themes: + """ + twentytwelve + """ Scenario: Assign / remove location from a menu When I run `wp menu location list` diff --git a/features/user-application-password.feature b/features/user-application-password.feature index c2779900b..ed4269afd 100644 --- a/features/user-application-password.feature +++ b/features/user-application-password.feature @@ -4,7 +4,10 @@ Feature: Manage user custom fields @less-than-php-8.0 @require-mysql Scenario: User application passwords are disabled for WordPress lower than 5.6 Given a WP install - And I try `wp theme install twentytwenty --activate` + And these installed and active themes: + """ + twentytwenty + """ And I run `wp core download --version=5.5 --force` When I try `wp user application-password create 1 myapp`