Skip to content

Commit 402d758

Browse files
committed
Update the theme in feature tests
1 parent 5619a55 commit 402d758

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

features/theme-delete.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Feature: Delete WordPress themes
22

33
Background:
44
Given a WP install
5-
And I run `wp theme install p2`
5+
And I run `wp theme install twentytwelve`
66

77
Scenario: Delete an installed theme
88
When I run `wp theme delete p2`

features/theme-install.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feature: Install WordPress themes
33
Scenario: Return code is 1 when one or more theme installations fail
44
Given a WP install
55

6-
When I try `wp theme install p2 p2-not-a-theme`
6+
When I try `wp theme install twentytwelve p2-not-a-theme`
77
Then STDERR should contain:
88
"""
99
Warning:
@@ -26,7 +26,7 @@ Feature: Install WordPress themes
2626
"""
2727
And the return code should be 1
2828

29-
When I try `wp theme install p2`
29+
When I try `wp theme install twentytwelve`
3030
Then STDOUT should be:
3131
"""
3232
Success: Theme already installed.
@@ -37,7 +37,7 @@ Feature: Install WordPress themes
3737
"""
3838
And the return code should be 0
3939

40-
When I try `wp theme install p2-not-a-theme`
40+
When I try `wp theme install twentytwelve-not-a-theme`
4141
Then STDERR should contain:
4242
"""
4343
Warning:
@@ -90,10 +90,10 @@ Feature: Install WordPress themes
9090
Scenario: Verify installed theme activation
9191
Given a WP install
9292

93-
When I run `wp theme install p2`
93+
When I run `wp theme install twentytwelve`
9494
Then STDOUT should not be empty
9595

96-
When I try `wp theme install p2 --activate`
96+
When I try `wp theme install twentytwelve --activate`
9797
Then STDERR should contain:
9898
"""
9999
Warning: p2: Theme already installed.

features/theme-update.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: Update WordPress themes
2020
Scenario: Install a theme, then update to a specific version of that theme
2121
Given a WP install
2222

23-
When I run `wp theme install p2 --version=1.4.1`
23+
When I run `wp theme install twentytwelve --version=1.4.1`
2424
Then STDOUT should not be empty
2525

2626
When I run `wp theme update p2 --version=1.4.2`
@@ -51,7 +51,7 @@ Feature: Update WordPress themes
5151
"""
5252

5353
# One theme installed.
54-
Given I run `wp theme install p2 --version=1.4.2`
54+
Given I run `wp theme install twentytwelve --version=1.4.2`
5555

5656
When I try `wp theme update`
5757
Then the return code should be 1
@@ -113,7 +113,7 @@ Feature: Update WordPress themes
113113
"""
114114
Error: Can't find the requested theme's version 1.4.2 in the WordPress.org theme repository (HTTP code 404).
115115
"""
116-
116+
117117
Scenario: Error when both --minor and --patch are provided
118118
Given a WP install
119119

@@ -139,7 +139,7 @@ Feature: Update WordPress themes
139139
"""
140140
3.9
141141
"""
142-
142+
143143
Scenario: Update a theme to its latest patch release
144144
Given a WP install
145145
And I run `wp theme install --force twentytwelve --version=1.1`

features/theme.feature

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feature: Manage WordPress themes
33
Scenario: Installing and deleting theme
44
Given a WP install
55

6-
When I run `wp theme install p2`
6+
When I run `wp theme install twentytwelve`
77
Then STDOUT should not be empty
88

99
When I run `wp theme status p2`
@@ -74,7 +74,7 @@ Feature: Manage WordPress themes
7474
Scenario: Install a theme, activate, then force install an older version of the theme
7575
Given a WP install
7676

77-
When I run `wp theme install p2 --version=1.4.2`
77+
When I run `wp theme install twentytwelve --version=1.4.2`
7878
Then STDOUT should not be empty
7979

8080
When I run `wp theme list --name=p2 --field=update_version`
@@ -96,7 +96,7 @@ Feature: Manage WordPress themes
9696
Success: Deleted
9797
"""
9898

99-
When I run `wp theme install p2 --version=1.4.1 --force`
99+
When I run `wp theme install twentytwelve --version=1.4.1 --force`
100100
Then STDOUT should not be empty
101101

102102
When I run `wp theme list`
@@ -117,7 +117,7 @@ Feature: Manage WordPress themes
117117
P2 updated successfully from version 1.4.1 to version
118118
"""
119119

120-
When I run `wp theme install p2 --version=1.4.1 --force`
120+
When I run `wp theme install twentytwelve --version=1.4.1 --force`
121121
Then STDOUT should not be empty
122122

123123
When I run `wp theme update --all`
@@ -129,7 +129,7 @@ Feature: Manage WordPress themes
129129
Scenario: Exclude theme from bulk updates.
130130
Given a WP install
131131

132-
When I run `wp theme install p2 --version=1.4.1 --force`
132+
When I run `wp theme install twentytwelve --version=1.4.1 --force`
133133
Then STDOUT should contain:
134134
"""
135135
Downloading install
@@ -170,7 +170,7 @@ Feature: Manage WordPress themes
170170
Scenario: Get the path of an installed theme
171171
Given a WP install
172172

173-
When I run `wp theme install p2`
173+
When I run `wp theme install twentytwelve`
174174
Then STDOUT should not be empty
175175

176176
When I run `wp theme path p2 --dir`
@@ -182,7 +182,7 @@ Feature: Manage WordPress themes
182182
Scenario: Activate an already active theme
183183
Given a WP install
184184

185-
When I run `wp theme install p2`
185+
When I run `wp theme install twentytwelve`
186186
Then STDOUT should not be empty
187187

188188
When I run `wp theme activate p2`
@@ -231,7 +231,7 @@ Feature: Manage WordPress themes
231231
And I run `if test -d wp-content/themes; then echo "fail"; fi`
232232
Then STDOUT should be empty
233233

234-
When I run `wp theme install p2 --activate`
234+
When I run `wp theme install twentytwelve --activate`
235235
Then STDOUT should not be empty
236236

237237
When I run `wp theme list --fields=name,status`
@@ -486,7 +486,7 @@ Feature: Manage WordPress themes
486486
Scenario: Get status field in theme detail
487487
Given a WP install
488488

489-
When I run `wp theme install p2`
489+
When I run `wp theme install twentytwelve`
490490
Then STDOUT should not be empty
491491

492492
When I run `wp theme get p2`
@@ -512,7 +512,7 @@ Feature: Manage WordPress themes
512512
Scenario: Theme activation fails when slug does not match exactly
513513
Given a WP install
514514

515-
When I run `wp theme install p2`
515+
When I run `wp theme install twentytwelve`
516516
Then the return code should be 0
517517

518518
When I try `wp theme activate P2`
@@ -569,7 +569,7 @@ Feature: Manage WordPress themes
569569

570570
Scenario: Parent theme is active when its child is active
571571
Given a WP install
572-
And I run `wp theme install p2`
572+
And I run `wp theme install twentytwelve`
573573
And I run `wp theme install moina-blog --activate`
574574

575575
When I run `wp theme is-active moina-blog`
@@ -584,7 +584,7 @@ Feature: Manage WordPress themes
584584
Scenario: Excluding a missing theme should not throw an error
585585
Given a WP install
586586
And I run `wp theme delete --all --force`
587-
And I run `wp theme install p2 --version=1.5.5 --activate`
587+
And I run `wp theme install twentytwelve --version=1.5.5 --activate`
588588
And I run `wp theme update --all --exclude=missing-theme`
589589
Then STDERR should be empty
590590
And STDOUT should contain:

0 commit comments

Comments
 (0)