Skip to content

Commit d1f03b1

Browse files
committed
fix theme.feature tests to include the new field
1 parent 364b768 commit d1f03b1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

features/theme.feature

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,14 @@ Feature: Manage WordPress themes
7777
When I run `wp theme install p2 --version=1.4.2`
7878
Then STDOUT should not be empty
7979

80+
When I run `wp theme list --name=p2 --field=update_version`
81+
Then STDOUT should not be empty
82+
And save STDOUT as {UPDATE_VERSION}
83+
8084
When I run `wp theme list`
8185
Then STDOUT should be a table containing rows:
82-
| name | status | update | version |
83-
| p2 | inactive | available | 1.4.2 |
86+
| name | status | update | version | update_version |
87+
| p2 | inactive | available | 1.4.2 | {UPDATE_VERSION} |
8488

8589
When I run `wp theme activate p2`
8690
Then STDOUT should not be empty
@@ -97,8 +101,8 @@ Feature: Manage WordPress themes
97101

98102
When I run `wp theme list`
99103
Then STDOUT should be a table containing rows:
100-
| name | status | update | version |
101-
| p2 | active | available | 1.4.1 |
104+
| name | status | update | version | update_version |
105+
| p2 | inactive | available | 1.4.1 | {UPDATE_VERSION} |
102106

103107
When I try `wp theme update`
104108
Then STDERR should be:

0 commit comments

Comments
 (0)