mirror of
https://ghproxy.net/https://github.com/wp-cli/extension-command.git
synced 2025-10-04 06:06:59 +08:00
Revert use of twentyten
WordPress Trunk actually includes all of these past default themes so the output is different. Put behind a version guard instead
This commit is contained in:
parent
38409d0a22
commit
47b062e92e
2 changed files with 7 additions and 5 deletions
|
@ -207,19 +207,20 @@ Feature: Manage WordPress themes
|
|||
And STDOUT should be empty
|
||||
And the return code should be 0
|
||||
|
||||
@require-wp-5.3
|
||||
Scenario: Flag `--skip-update-check` skips update check when running `wp theme list`
|
||||
Given a WP install
|
||||
|
||||
When I run `wp theme install twentyten --version=4.0`
|
||||
When I run `wp theme install astra --version=1.0.0`
|
||||
Then STDOUT should contain:
|
||||
"""
|
||||
Installed 1 of 1 themes
|
||||
Theme installed successfully.
|
||||
"""
|
||||
|
||||
When I run `wp theme list --fields=name,status,update`
|
||||
Then STDOUT should be a table containing rows:
|
||||
| name | status | update |
|
||||
| twentyten | inactive | available |
|
||||
| astra | inactive | available |
|
||||
|
||||
When I run `wp transient delete update_themes --network`
|
||||
Then STDOUT should be:
|
||||
|
@ -230,7 +231,7 @@ Feature: Manage WordPress themes
|
|||
When I run `wp theme list --fields=name,status,update --skip-update-check`
|
||||
Then STDOUT should be a table containing rows:
|
||||
| name | status | update |
|
||||
| twentyten | inactive | none |
|
||||
| astra | inactive | none |
|
||||
|
||||
Scenario: Install a theme when the theme directory doesn't yet exist
|
||||
Given a WP install
|
||||
|
|
|
@ -3,6 +3,7 @@ Feature: Manage WordPress themes and plugins
|
|||
Background:
|
||||
Given an empty cache
|
||||
|
||||
@require-wp-4.5
|
||||
Scenario Outline: Installing, upgrading and deleting a theme or plugin
|
||||
Given a WP install
|
||||
And I run `wp <type> path`
|
||||
|
@ -208,5 +209,5 @@ Feature: Manage WordPress themes and plugins
|
|||
|
||||
Examples:
|
||||
| type | type_name | item | item_title | version | zip_file | file_to_check |
|
||||
| theme | Theme | twentyten | Twenty Ten | 4.0 | https://wordpress.org/themes/download/twentyten.4.0.zip | {CONTENT_DIR}/twentyten/style.css |
|
||||
| theme | Theme | moina | Moina | 1.1.2 | https://wordpress.org/themes/download/moina.1.1.2.zip | {CONTENT_DIR}/moina/style.css |
|
||||
| plugin | Plugin | category-checklist-tree | Category Checklist Tree | 1.2 | https://downloads.wordpress.org/plugin/category-checklist-tree.1.2.zip | {CONTENT_DIR}/category-checklist-tree/category-checklist-tree.php |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue