From 00adfe9e23c06b204ad156e7ec054edb55ec7f96 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 03:57:33 +0100 Subject: [PATCH] Use cached plugin and theme installs in tests Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- composer.lock | 31 +++++++++++++------------------ features/requests.feature | 5 ++++- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/composer.json b/composer.json index 99e1e0e09..38ce813d9 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,7 @@ }, "require-dev": { "wp-cli/package-command": "^3", - "wp-cli/wp-cli-tests": "^5" + "wp-cli/wp-cli-tests": "^5.4.0" }, "suggest": { "psy/psysh": "Enhanced `wp shell` functionality", diff --git a/composer.lock b/composer.lock index dc6d18c91..250b6dcef 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8145a5b8d7fd04c2ecb6fb2f6892b449", + "content-hash": "7b14f7d16361ad6655125b383a90eb11", "packages": [ { "name": "composer/semver", @@ -81,8 +81,7 @@ "type": "github" } ], - "time": "2026-10-29T09:13:34+00:00", - "published-time": "2026-10-29T09:14:11+00:00" + "time": "2026-10-29T09:13:34+00:00" }, { "name": "eftec/bladeone", @@ -398,8 +397,7 @@ "issues": "https://github.com/bobthecow/mustache.php/issues", "source": "https://github.com/bobthecow/mustache.php/tree/v3.2.0" }, - "time": "2026-05-10T04:13:08+00:00", - "published-time": "2026-05-10T04:16:00+00:00" + "time": "2026-05-10T04:13:08+00:00" }, { "name": "nb/oxymel", @@ -2061,8 +2059,7 @@ "support": { "source": "https://github.com/wp-cli/spyc/tree/0.6.7" }, - "time": "2026-10-06T08:59:48+00:00", - "published-time": "2026-10-06T09:00:14+00:00" + "time": "2026-10-06T08:59:48+00:00" }, { "name": "wp-cli/php-cli-tools", @@ -2125,8 +2122,7 @@ "issues": "https://github.com/wp-cli/php-cli-tools/issues", "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.13.2" }, - "time": "2026-10-07T11:43:52+00:00", - "published-time": "2026-10-07T11:44:13+00:00" + "time": "2026-10-07T11:43:52+00:00" }, { "name": "wp-cli/rewrite-command", @@ -2769,8 +2765,7 @@ "issues": "https://github.com/wp-cli/wp-cli/issues", "source": "https://github.com/wp-cli/wp-cli" }, - "time": "2026-10-31T15:45:48+00:00", - "published-time": "2026-10-31T15:45:49+00:00" + "time": "2026-10-31T15:45:48+00:00" }, { "name": "wp-cli/wp-config-transformer", @@ -8606,16 +8601,16 @@ }, { "name": "wp-cli/wp-cli-tests", - "version": "v5.3.5", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli-tests.git", - "reference": "f6ab8404041ce23a4687dc248e0ca346b7d6ebe5" + "reference": "36e43f32099ada5f00d0114aafcb044ffa300817" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli-tests/zipball/f6ab8404041ce23a4687dc248e0ca346b7d6ebe5", - "reference": "f6ab8404041ce23a4687dc248e0ca346b7d6ebe5", + "url": "https://api.github.com/repos/wp-cli/wp-cli-tests/zipball/36e43f32099ada5f00d0114aafcb044ffa300817", + "reference": "36e43f32099ada5f00d0114aafcb044ffa300817", "shasum": "" }, "require": { @@ -8643,7 +8638,7 @@ "yoast/phpunit-polyfills": "^2.0 || ^3.0 || ^4.0" }, "require-dev": { - "roave/security-advisories": "dev-latest" + "wp-cli/extension-command": "^1 || ^2 || ^3" }, "bin": [ "bin/install-package-tests", @@ -8698,7 +8693,7 @@ "issues": "https://github.com/wp-cli/wp-cli-tests/issues", "source": "https://github.com/wp-cli/wp-cli-tests" }, - "time": "2026-10-09T12:48:55+00:00" + "time": "2026-11-02T02:52:16+00:00" }, { "name": "wp-coding-standards/wpcs", @@ -8928,5 +8923,5 @@ "platform-overrides": { "php": "7.2.24" }, - "plugin-api-version": "2.11.0" + "plugin-api-version": "2.9.0" } diff --git a/features/requests.feature b/features/requests.feature index 5f8ccde6e..0cb9e7101 100644 --- a/features/requests.feature +++ b/features/requests.feature @@ -94,7 +94,10 @@ Feature: Requests integration with both v1 and v2 Given a WP installation # Switch themes because twentytwentyfive requires a version newer than 6.2 # and it would otherwise cause a fatal error further down. - And I try `wp theme install twentyten` + And these installed themes: + """ + twentyten + """ And I try `wp theme activate twentyten` And I run `wp core update --version=6.2 --force`