Skip to content

Commit

Permalink
Replace P2 theme with TwentyTwelve in feature test (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar authored Apr 19, 2024
1 parent fa67eb6 commit 7062ed3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions features/sidebar.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ Feature: Manage WordPress sidebars
Scenario: List available sidebars
Given a WP install

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

When I run `wp sidebar list --fields=name,id`
Then STDOUT should be a table containing rows:
| name | id |
| Sidebar | sidebar-1 |
| name | id |
| Main Sidebar | sidebar-1 |
| First Front Page Widget Area | sidebar-2 |
| Second Front Page Widget Area | sidebar-3 |
| Inactive Widgets | wp_inactive_widgets |

When I run `wp sidebar list --format=ids`
Then STDOUT should be:
"""
sidebar-1 wp_inactive_widgets
sidebar-1 sidebar-2 sidebar-3 wp_inactive_widgets
"""

When I run `wp sidebar list --format=count`
Then STDOUT should be:
"""
2
4
"""

0 comments on commit 7062ed3

Please sign in to comment.