Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require-dev": {
"wp-cli/extension-command": "^1.2 || ^2 || ^3",
"wp-cli/wp-cli-tests": "^5"
"wp-cli/wp-cli-tests": "dev-cached-extension-installs as 5.3.99"
},
"config": {
"process-timeout": 7200,
Expand Down
5 changes: 4 additions & 1 deletion features/sidebar.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Feature: Manage WordPress sidebars
Background:
Given a WP install
And I try `wp theme delete twentytwelve --force`
And I run `wp theme install twentytwelve --activate`
And these installed and active themes:
"""
twentytwelve
"""

Scenario: List available sidebars
When I run `wp sidebar list --fields=name,id`
Expand Down
5 changes: 4 additions & 1 deletion features/widget-reset.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ Feature: Reset WordPress sidebars
Background:
Given a WP install
And I try `wp theme delete twentytwelve --force`
And I run `wp theme install twentytwelve --activate`
And these installed and active themes:
"""
twentytwelve
"""
And I try `wp widget reset --all`
And I try `wp widget delete wp_inactive_widgets $(wp widget list wp_inactive_widgets --format=ids)`

Expand Down
5 changes: 4 additions & 1 deletion features/widget.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ Feature: Manage widgets in WordPress sidebar
Background:
Given a WP install
And I try `wp theme delete twentytwelve --force`
And I run `wp theme install twentytwelve --activate`
And these installed and active themes:
"""
twentytwelve
"""
And I try `wp widget reset --all`
And I try `wp widget delete wp_inactive_widgets $(wp widget list wp_inactive_widgets --format=ids)`
And I run `wp widget add text sidebar-1 --title="Text 1"`
Expand Down
Loading