Skip to content

Commit 47b062e

Browse files
committed
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
1 parent 38409d0 commit 47b062e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

features/theme.feature

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,20 @@ Feature: Manage WordPress themes
207207
And STDOUT should be empty
208208
And the return code should be 0
209209

210+
@require-wp-5.3
210211
Scenario: Flag `--skip-update-check` skips update check when running `wp theme list`
211212
Given a WP install
212213

213-
When I run `wp theme install twentyten --version=4.0`
214+
When I run `wp theme install astra --version=1.0.0`
214215
Then STDOUT should contain:
215216
"""
216-
Installed 1 of 1 themes
217+
Theme installed successfully.
217218
"""
218219

219220
When I run `wp theme list --fields=name,status,update`
220221
Then STDOUT should be a table containing rows:
221222
| name | status | update |
222-
| twentyten | inactive | available |
223+
| astra | inactive | available |
223224

224225
When I run `wp transient delete update_themes --network`
225226
Then STDOUT should be:
@@ -230,7 +231,7 @@ Feature: Manage WordPress themes
230231
When I run `wp theme list --fields=name,status,update --skip-update-check`
231232
Then STDOUT should be a table containing rows:
232233
| name | status | update |
233-
| twentyten | inactive | none |
234+
| astra | inactive | none |
234235

235236
Scenario: Install a theme when the theme directory doesn't yet exist
236237
Given a WP install

features/upgradables.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Feature: Manage WordPress themes and plugins
33
Background:
44
Given an empty cache
55

6+
@require-wp-4.5
67
Scenario Outline: Installing, upgrading and deleting a theme or plugin
78
Given a WP install
89
And I run `wp <type> path`
@@ -208,5 +209,5 @@ Feature: Manage WordPress themes and plugins
208209

209210
Examples:
210211
| type | type_name | item | item_title | version | zip_file | file_to_check |
211-
| theme | Theme | twentyten | Twenty Ten | 4.0 | https://wordpress.org/themes/download/twentyten.4.0.zip | {CONTENT_DIR}/twentyten/style.css |
212+
| theme | Theme | moina | Moina | 1.1.2 | https://wordpress.org/themes/download/moina.1.1.2.zip | {CONTENT_DIR}/moina/style.css |
212213
| 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 |

0 commit comments

Comments
 (0)