@@ -2,7 +2,8 @@ Feature: Manage WordPress themes
22
33 Scenario : Installing and deleting theme
44 Given a WP install
5- And I run `wp theme delete twentytwelve --force`
5+ And I run `wp theme delete --all --force`
6+ And I run `wp theme install twentyeleven --activate`
67
78 When I run `wp theme install twentytwelve`
89 Then STDOUT should not be empty
@@ -74,7 +75,8 @@ Feature: Manage WordPress themes
7475
7576 Scenario : Install a theme, activate, then force install an older version of the theme
7677 Given a WP install
77- And I run `wp theme delete twentytwelve --force`
78+ And I run `wp theme delete --all --force`
79+ And I run `wp theme install twentyeleven --activate`
7880
7981 When I run `wp theme install twentytwelve --version=1.4`
8082 Then STDOUT should not be empty
@@ -130,7 +132,8 @@ Feature: Manage WordPress themes
130132
131133 Scenario : Exclude theme from bulk updates.
132134 Given a WP install
133- And I run `wp theme delete twentytwelve --force`
135+ And I run `wp theme delete --all --force`
136+ And I run `wp theme install twentyeleven --activate`
134137
135138 When I run `wp theme install twentytwelve --version=1.4 --force`
136139 Then STDOUT should contain:
@@ -172,7 +175,7 @@ Feature: Manage WordPress themes
172175
173176 Scenario : Get the path of an installed theme
174177 Given a WP install
175- And I run `wp theme delete twentytwelve --force`
178+ And I run `wp theme delete --all --force`
176179
177180 When I run `wp theme install twentytwelve`
178181 Then STDOUT should not be empty
@@ -185,7 +188,7 @@ Feature: Manage WordPress themes
185188
186189 Scenario : Activate an already active theme
187190 Given a WP install
188- And I run `wp theme delete twentytwelve --force`
191+ And I run `wp theme delete --all --force`
189192
190193 When I run `wp theme install twentytwelve`
191194 Then STDOUT should not be empty
@@ -231,6 +234,7 @@ Feature: Manage WordPress themes
231234
232235 Scenario : Install a theme when the theme directory doesn't yet exist
233236 Given a WP install
237+ And I run `wp theme delete --all --force`
234238
235239 When I run `rm -rf wp-content/themes`
236240 And I run `if test -d wp-content/themes; then echo "fail" ; fi`
@@ -402,6 +406,7 @@ Feature: Manage WordPress themes
402406
403407 Scenario : When updating a theme --format should be the same when using --dry-run
404408 Given a WP install
409+ And I run `wp theme delete --all --force`
405410
406411 When I run `wp theme install --force twentytwelve --version=1.0`
407412 Then STDOUT should not be empty
@@ -441,6 +446,7 @@ Feature: Manage WordPress themes
441446
442447 Scenario : Check json and csv formats when updating a theme
443448 Given a WP install
449+ And I run `wp theme delete --all --force`
444450
445451 When I run `wp theme install --force twentytwelve --version=1.0`
446452 Then STDOUT should not be empty
@@ -490,7 +496,7 @@ Feature: Manage WordPress themes
490496
491497 Scenario : Get status field in theme detail
492498 Given a WP install
493- And I run `wp theme delete twentytwelve --force`
499+ And I run `wp theme delete --all --force`
494500
495501 When I run `wp theme install twentytwelve`
496502 Then STDOUT should not be empty
@@ -517,7 +523,7 @@ Feature: Manage WordPress themes
517523
518524 Scenario : Theme activation fails when slug does not match exactly
519525 Given a WP install
520- And I run `wp theme delete twentytwelve --force`
526+ And I run `wp theme delete --all --force`
521527
522528 When I run `wp theme install twentytwelve`
523529 Then the return code should be 0
@@ -576,8 +582,7 @@ Feature: Manage WordPress themes
576582
577583 Scenario : Parent theme is active when its child is active
578584 Given a WP install
579- And I run `wp theme delete twentytwelve --force`
580-
585+ And I run `wp theme delete --all --force`
581586 And I run `wp theme install twentytwelve`
582587 And I run `wp theme install moina-blog --activate`
583588
0 commit comments