Skip to content

Commit 38409d0

Browse files
committed
More changes for PHP 5.6 / WP 3.7 tests to skip or pass
1 parent 36ec8f6 commit 38409d0

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

features/theme.feature

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,16 @@ Feature: Manage WordPress themes
210210
Scenario: Flag `--skip-update-check` skips update check when running `wp theme list`
211211
Given a WP install
212212

213-
When I run `wp theme install twentythirteen --version=1.1 --force`
213+
When I run `wp theme install twentyten --version=4.0`
214214
Then STDOUT should contain:
215215
"""
216216
Installed 1 of 1 themes
217217
"""
218218

219219
When I run `wp theme list --fields=name,status,update`
220220
Then STDOUT should be a table containing rows:
221-
| name | status | update |
222-
| twentythirteen | inactive | available |
221+
| name | status | update |
222+
| twentyten | inactive | available |
223223

224224
When I run `wp transient delete update_themes --network`
225225
Then STDOUT should be:
@@ -229,8 +229,8 @@ Feature: Manage WordPress themes
229229

230230
When I run `wp theme list --fields=name,status,update --skip-update-check`
231231
Then STDOUT should be a table containing rows:
232-
| name | status | update |
233-
| twentythirteen | inactive | none |
232+
| name | status | update |
233+
| twentyten | inactive | none |
234234

235235
Scenario: Install a theme when the theme directory doesn't yet exist
236236
Given a WP install
@@ -284,6 +284,7 @@ Feature: Manage WordPress themes
284284
Theme updated successfully.
285285
"""
286286

287+
@require-wp-5.7
287288
Scenario: Enabling and disabling a theme
288289
Given a WP multisite install
289290
And I run `wp theme install moina`
@@ -379,6 +380,7 @@ Feature: Manage WordPress themes
379380
And STDOUT should be empty
380381
And the return code should be 1
381382

383+
@require-wp-5.7
382384
Scenario: Install and attempt to activate a child theme without its parent
383385
Given a WP install
384386
And I run `wp theme install moina-blog`
@@ -392,6 +394,7 @@ Feature: Manage WordPress themes
392394
And STDOUT should be empty
393395
And the return code should be 1
394396

397+
@require-wp-5.7
395398
Scenario: List an active theme with its parent
396399
Given a WP install
397400
And I run `wp theme install moina`
@@ -470,6 +473,7 @@ Feature: Manage WordPress themes
470473
twentytwelve,1.0,{UPDATE_VERSION},Updated
471474
"""
472475

476+
@require-wp-5.7
473477
Scenario: Automatically install parent theme for a child theme
474478
Given a WP install
475479

@@ -579,7 +583,7 @@ Feature: Manage WordPress themes
579583
Error: Parameter errors:
580584
Invalid value specified for 'status' (Filter the output by theme status.)
581585
"""
582-
586+
@require-wp-5.7
583587
Scenario: Parent theme is active when its child is active
584588
Given a WP install
585589
And I run `wp theme delete --all --force`
@@ -621,7 +625,6 @@ Feature: Manage WordPress themes
621625
| auto_update |
622626
| on |
623627

624-
@require-php-7
625628
Scenario: Show theme update as unavailable if it doesn't meet WordPress requirements
626629
Given a WP install
627630
And a wp-content/themes/example/style.css file:

features/upgradables.feature

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,10 @@ Feature: Manage WordPress themes and plugins
5555
Then STDOUT should not be empty
5656
And save STDOUT as {UPDATE_VERSION}
5757

58-
When I run `wp <type> list --name=<item> --field=update`
59-
Then STDOUT should not be empty
60-
And save STDOUT as {UPDATE}
61-
62-
When I run `wp <type> list --fields=name,status,update,version,update_version,auto_update`
58+
When I run `wp <type> list`
6359
Then STDOUT should be a table containing rows:
64-
| name | status | update | version | update_version | auto_update |
65-
| <item> | inactive | {UPDATE} | <version> | {UPDATE_VERSION} | off |
60+
| name | status | update | version | update_version | auto_update |
61+
| <item> | inactive | available | <version> | {UPDATE_VERSION} | off |
6662

6763
When I run `wp <type> list --field=name`
6864
Then STDOUT should contain:
@@ -212,5 +208,5 @@ Feature: Manage WordPress themes and plugins
212208

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