From eb966cd435c6daa0d21e1486df0634f7002d0487 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 6 May 2025 22:34:17 +0200 Subject: [PATCH 1/5] Replace duplicate-post with hello-dolly --- features/bootstrap.feature | 2 +- features/requests.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/bootstrap.feature b/features/bootstrap.feature index 2ba095956c..c7e37ba744 100644 --- a/features/bootstrap.feature +++ b/features/bootstrap.feature @@ -312,7 +312,7 @@ Feature: Bootstrap WP-CLI """ And I run `wp package install {RUN_DIR}/override` - When I try `wp plugin install duplicate-post` + When I try `wp plugin install hello-dolly` Then STDERR should contain: """ Error: Plugin installation has been disabled. diff --git a/features/requests.feature b/features/requests.feature index 384f7fc57e..0b8a72f05d 100644 --- a/features/requests.feature +++ b/features/requests.feature @@ -71,7 +71,7 @@ Feature: Requests integration with both v1 and v2 """ And STDERR should be empty - When I run `wp plugin install duplicate-post` + When I run `wp plugin install hello-dolly` Then STDOUT should contain: """ Success: Installed 1 of 1 plugins. @@ -102,7 +102,7 @@ Feature: Requests integration with both v1 and v2 """ And STDERR should be empty - When I run `wp plugin install duplicate-post` + When I run `wp plugin install hello-dolly` Then STDOUT should contain: """ Success: Installed 1 of 1 plugins. From 79e49fbe9c57244629af5238d48c54b6b17446ad Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 6 May 2025 22:57:05 +0200 Subject: [PATCH 2/5] Delete existing plugins first --- features/bootstrap.feature | 1 + features/requests.feature | 2 ++ 2 files changed, 3 insertions(+) diff --git a/features/bootstrap.feature b/features/bootstrap.feature index c7e37ba744..b0239e54c4 100644 --- a/features/bootstrap.feature +++ b/features/bootstrap.feature @@ -274,6 +274,7 @@ Feature: Bootstrap WP-CLI Scenario: Extend existing bundled command through package manager Given a WP installation + And I run `wp plugin delete --all` And a override/override.php file: """ Date: Wed, 7 May 2025 00:14:43 +0200 Subject: [PATCH 3/5] Revert unneeded change --- features/bootstrap.feature | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/bootstrap.feature b/features/bootstrap.feature index b0239e54c4..2ba095956c 100644 --- a/features/bootstrap.feature +++ b/features/bootstrap.feature @@ -274,7 +274,6 @@ Feature: Bootstrap WP-CLI Scenario: Extend existing bundled command through package manager Given a WP installation - And I run `wp plugin delete --all` And a override/override.php file: """ Date: Wed, 7 May 2025 00:32:29 +0200 Subject: [PATCH 4/5] Really make sure all plugins are gone --- features/requests.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/requests.feature b/features/requests.feature index ef6bf97709..53bd7416c0 100644 --- a/features/requests.feature +++ b/features/requests.feature @@ -54,6 +54,7 @@ Feature: Requests integration with both v1 and v2 And I run `wp core update --version=5.8 --force` And I run `rm -r wp-content/themes/*` And I run `wp plugin delete --all` + And I run `rm -r wp-content/plugins/*` When I run `wp core version` Then STDOUT should contain: @@ -86,6 +87,7 @@ Feature: Requests integration with both v1 and v2 And I try `wp theme activate twentyten` And I run `wp core update --version=6.2 --force` And I run `wp plugin delete --all` + And I run `rm -r wp-content/plugins/*` When I run `wp core version` Then STDOUT should contain: From facd817c1938913e2b4298095a4e473467850d07 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 7 May 2025 00:54:33 +0200 Subject: [PATCH 5/5] Try with debug-bar instead --- features/requests.feature | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/features/requests.feature b/features/requests.feature index 53bd7416c0..8ef03e75d1 100644 --- a/features/requests.feature +++ b/features/requests.feature @@ -53,8 +53,6 @@ Feature: Requests integration with both v1 and v2 Given a WP installation And I run `wp core update --version=5.8 --force` And I run `rm -r wp-content/themes/*` - And I run `wp plugin delete --all` - And I run `rm -r wp-content/plugins/*` When I run `wp core version` Then STDOUT should contain: @@ -73,7 +71,7 @@ Feature: Requests integration with both v1 and v2 """ And STDERR should be empty - When I run `wp plugin install hello-dolly` + When I run `wp plugin install debug-bar` Then STDOUT should contain: """ Success: Installed 1 of 1 plugins. @@ -86,8 +84,6 @@ Feature: Requests integration with both v1 and v2 And I try `wp theme install twentyten` And I try `wp theme activate twentyten` And I run `wp core update --version=6.2 --force` - And I run `wp plugin delete --all` - And I run `rm -r wp-content/plugins/*` When I run `wp core version` Then STDOUT should contain: @@ -106,7 +102,7 @@ Feature: Requests integration with both v1 and v2 """ And STDERR should be empty - When I run `wp plugin install hello-dolly` + When I run `wp plugin install debug-bar` Then STDOUT should contain: """ Success: Installed 1 of 1 plugins.