Skip to content

Commit 2f6affc

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

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"wp-cli/extension-command": "^1.2 || ^2 || ^3",
2121
"wp-cli/media-command": "^1.1 || ^2 || ^3",
2222
"wp-cli/super-admin-command": "^1 || ^2 || ^3",
23-
"wp-cli/wp-cli-tests": "^5"
23+
"wp-cli/wp-cli-tests": "^5.4.0"
2424
},
2525
"config": {
2626
"process-timeout": 7200,

‎features/menu-location.feature‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Feature: Manage WordPress menu locations
33
Background:
44
Given a WP install
55
And I run `wp theme delete --all --force`
6-
And I run `wp theme install twentytwelve --activate`
6+
And these installed and active themes:
7+
"""
8+
twentytwelve
9+
"""
710

811
Scenario: Assign / remove location from a menu
912
When I run `wp menu location list`

‎features/user-application-password.feature‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Feature: Manage user custom fields
44
@less-than-php-8.0 @require-mysql
55
Scenario: User application passwords are disabled for WordPress lower than 5.6
66
Given a WP install
7-
And I try `wp theme install twentytwenty --activate`
7+
And these installed and active themes:
8+
"""
9+
twentytwenty
10+
"""
811
And I run `wp core download --version=5.5 --force`
912

1013
When I try `wp user application-password create 1 myapp`

0 commit comments

Comments
 (0)