From 3759f6a0d3b65ea551dd795bdb6b82ed82be0faa Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Wed, 21 Feb 2024 15:04:01 +0545 Subject: [PATCH] Add feature test for multiple themes installation with activate flag --- features/theme-install.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/features/theme-install.feature b/features/theme-install.feature index 88fe6b3e..918422f0 100644 --- a/features/theme-install.feature +++ b/features/theme-install.feature @@ -105,3 +105,12 @@ Feature: Install WordPress themes Success: Switched to 'Twenty Twelve' theme. Success: Theme already installed. """ + + Scenario: Installation of multiple themes with activate + Given a WP install + + When I try `wp theme install p2 moina --activate` + Then STDERR should contain: + """ + Warning: Only a single theme can be active. + """