Skip to content

Commit 36ec8f6

Browse files
committed
Update test to work across any WordPress version
This is going to have different results across different versions of WordPress now, because output depends on the upstream requirements of what we are testing. Update test so that the update status is variable and we specify the fields otherwise it would sometimes show additional fields explaining the reason an update is unavailable
1 parent 1f9609c commit 36ec8f6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

features/upgradables.feature

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ 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`
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`
5963
Then STDOUT should be a table containing rows:
60-
| name | status | update | version | update_version | auto_update |
61-
| <item> | inactive | available | <version> | {UPDATE_VERSION} | off |
64+
| name | status | update | version | update_version | auto_update |
65+
| <item> | inactive | {UPDATE} | <version> | {UPDATE_VERSION} | off |
6266

6367
When I run `wp <type> list --field=name`
6468
Then STDOUT should contain:

0 commit comments

Comments
 (0)