File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,26 @@ Feature: Manage WordPress sidebars
3
3
Scenario : List available sidebars
4
4
Given a WP install
5
5
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`
7
8
Then STDOUT should not be empty
8
9
9
10
When I run `wp sidebar list --fields=name,id`
10
11
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 |
13
17
14
18
When I run `wp sidebar list --format=ids`
15
19
Then STDOUT should be:
16
20
"""
17
- sidebar-1 wp_inactive_widgets
21
+ sidebar-1 sidebar-2 sidebar-3 wp_inactive_widgets
18
22
"""
19
23
20
24
When I run `wp sidebar list --format=count`
21
25
Then STDOUT should be:
22
26
"""
23
- 2
27
+ 4
24
28
"""
You can’t perform that action at this time.
0 commit comments