Skip to content

Commit ccbae34

Browse files
schlesseraclaude
andcommitted
Use cached plugin and theme installs in tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a5df1af commit ccbae34

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"wp-cli/extension-command": "^1.2 || ^2 || ^3",
19-
"wp-cli/wp-cli-tests": "^5"
19+
"wp-cli/wp-cli-tests": "^5.4.0"
2020
},
2121
"config": {
2222
"process-timeout": 7200,

‎features/sidebar.feature‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ Feature: Manage WordPress sidebars
22
Background:
33
Given a WP install
44
And I try `wp theme delete twentytwelve --force`
5-
And I run `wp theme install twentytwelve --activate`
5+
And these installed and active themes:
6+
"""
7+
twentytwelve
8+
"""
69

710
Scenario: List available sidebars
811
When I run `wp sidebar list --fields=name,id`

‎features/widget-reset.feature‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Feature: Reset WordPress sidebars
33
Background:
44
Given a WP install
55
And I try `wp theme delete twentytwelve --force`
6-
And I run `wp theme install twentytwelve --activate`
6+
And these installed and active themes:
7+
"""
8+
twentytwelve
9+
"""
710
And I try `wp widget reset --all`
811
And I try `wp widget delete wp_inactive_widgets $(wp widget list wp_inactive_widgets --format=ids)`
912

‎features/widget.feature‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Feature: Manage widgets in WordPress sidebar
33
Background:
44
Given a WP install
55
And I try `wp theme delete twentytwelve --force`
6-
And I run `wp theme install twentytwelve --activate`
6+
And these installed and active themes:
7+
"""
8+
twentytwelve
9+
"""
710
And I try `wp widget reset --all`
811
And I try `wp widget delete wp_inactive_widgets $(wp widget list wp_inactive_widgets --format=ids)`
912
And I run `wp widget add text sidebar-1 --title="Text 1"`

0 commit comments

Comments
 (0)