Skip to content

Commit 7062ed3

Browse files
authored
Replace P2 theme with TwentyTwelve in feature test (#61)
1 parent fa67eb6 commit 7062ed3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

features/sidebar.feature

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ Feature: Manage WordPress sidebars
33
Scenario: List available sidebars
44
Given a WP install
55

6-
When I run `wp theme install p2 --activate`
6+
When I try `wp theme delete twentytwelve --force`
7+
And I run `wp theme install twentytwelve --activate`
78
Then STDOUT should not be empty
89

910
When I run `wp sidebar list --fields=name,id`
1011
Then STDOUT should be a table containing rows:
11-
| name | id |
12-
| Sidebar | sidebar-1 |
12+
| name | id |
13+
| Main Sidebar | sidebar-1 |
14+
| First Front Page Widget Area | sidebar-2 |
15+
| Second Front Page Widget Area | sidebar-3 |
16+
| Inactive Widgets | wp_inactive_widgets |
1317

1418
When I run `wp sidebar list --format=ids`
1519
Then STDOUT should be:
1620
"""
17-
sidebar-1 wp_inactive_widgets
21+
sidebar-1 sidebar-2 sidebar-3 wp_inactive_widgets
1822
"""
1923

2024
When I run `wp sidebar list --format=count`
2125
Then STDOUT should be:
2226
"""
23-
2
27+
4
2428
"""

0 commit comments

Comments
 (0)