@@ -85,11 +85,17 @@ Feature: Uninstall a WordPress plugin
8585
8686 Scenario : Uninstall all installed plugins
8787 When I run `wp plugin uninstall --all`
88- Then STDOUT should be :
88+ Then STDOUT should contain :
8989 """
9090 Uninstalled and deleted 'akismet' plugin.
91+ """
92+ And STDOUT should contain:
93+ """
9194 Uninstalled and deleted 'sample-plugin' plugin.
92- Success: Uninstalled 2 of 2 plugins.
95+ """
96+ And STDOUT should contain:
97+ """
98+ Success: Uninstalled 3 of 3 plugins.
9399 """
94100 And the return code should be 0
95101 And STDERR should be empty
@@ -105,14 +111,20 @@ Feature: Uninstall a WordPress plugin
105111 When I run `wp plugin activate --all`
106112 Then STDOUT should contain:
107113 """
108- Success: Activated 2 of 2 plugins.
114+ Success: Activated 3 of 3 plugins.
109115 """
110116
111117 When I try `wp plugin uninstall --all`
112- Then STDERR should be :
118+ Then STDERR should contain :
113119 """
114120 Warning: The 'akismet' plugin is active.
121+ """
122+ And STDERR should contain:
123+ """
115124 Warning: The 'sample-plugin' plugin is active.
125+ """
126+ And STDERR should contain:
127+ """
116128 Error: No plugins uninstalled.
117129 """
118130 And the return code should be 1
@@ -126,7 +138,7 @@ Feature: Uninstall a WordPress plugin
126138 And STDERR should be empty
127139
128140 Scenario : Excluding a plugin from uninstallation when using --all switch
129- When I try `wp plugin uninstall --all --exclude=akismet,sample-plugin`
141+ When I try `wp plugin uninstall --all --exclude=akismet,sample-plugin,hello,hello-dolly `
130142 Then STDOUT should be:
131143 """
132144 Success: No plugins uninstalled.
0 commit comments