Skip to content

Commit 9b23d37

Browse files
committed
Adjust some tests
1 parent a946108 commit 9b23d37

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

features/theme.feature

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ Feature: Manage WordPress themes
8787

8888
When I run `wp theme list`
8989
Then STDOUT should be a table containing rows:
90-
| name | status | update | version | update_version | auto_update |
91-
| twentytwelve | inactive | available | 1.4 | {UPDATE_VERSION} | off |
90+
| name | status | update | version | update_version | auto_update | type |
91+
| twentytwelve | inactive | available | 1.4 | {UPDATE_VERSION} | off | classic |
9292

9393
When I run `wp theme activate twentytwelve`
9494
Then STDOUT should not be empty
@@ -687,8 +687,8 @@ Feature: Manage WordPress themes
687687

688688
When I run `wp theme list`
689689
Then STDOUT should be a table containing rows:
690-
| name | status | update | version | update_version | auto_update | requires | requires_php |
691-
| example | inactive | unavailable | 1.0.0 | 2.0.0 | off | 100 | 5.6 |
690+
| name | status | update | version | update_version | auto_update | type |requires | requires_php |
691+
| example | inactive | unavailable | 1.0.0 | 2.0.0 | off | classic | 100 | 5.6 |
692692

693693
When I try `wp theme update example`
694694
Then STDERR should contain:
@@ -730,8 +730,8 @@ Feature: Manage WordPress themes
730730

731731
When I run `wp theme list`
732732
Then STDOUT should be a table containing rows:
733-
| name | status | update | version | update_version | auto_update | requires | requires_php |
734-
| example | inactive | unavailable | 1.0.0 | 2.0.0 | off | 3.7 | 100 |
733+
| name | status | update | version | update_version | auto_update | type |requires | requires_php |
734+
| example | inactive | unavailable | 1.0.0 | 2.0.0 | off | classic | 3.7 | 100 |
735735

736736
When I try `wp theme update example`
737737
Then STDERR should contain:
@@ -743,12 +743,6 @@ Feature: Manage WordPress themes
743743
Scenario: Check theme type field for block themes
744744
Given a WP install
745745

746-
When I run `wp theme install twentytwentyfour`
747-
Then STDOUT should contain:
748-
"""
749-
Theme installed successfully.
750-
"""
751-
752746
When I run `wp theme list --fields=name,type`
753747
Then STDOUT should be a table containing rows:
754748
| name | type |
@@ -763,12 +757,6 @@ Feature: Manage WordPress themes
763757
Scenario: Check theme type field for classic themes
764758
Given a WP install
765759

766-
When I run `wp theme install twentytwelve`
767-
Then STDOUT should contain:
768-
"""
769-
Theme installed successfully.
770-
"""
771-
772760
When I run `wp theme list --fields=name,type --name=twentytwelve`
773761
Then STDOUT should be a table containing rows:
774762
| name | type |
@@ -779,4 +767,3 @@ Feature: Manage WordPress themes
779767
"""
780768
classic
781769
"""
782-

features/upgradables.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Feature: Manage WordPress themes and plugins
5858
Then STDOUT should not be empty
5959
And save STDOUT as {UPDATE_VERSION}
6060

61-
When I run `wp <type> list`
61+
When I run `wp <type> list --fields=name,status,update,version,update_version,auto_update`
6262
Then STDOUT should be a table containing rows:
6363
| name | status | update | version | update_version | auto_update |
6464
| <item> | inactive | available | <version> | {UPDATE_VERSION} | off |

0 commit comments

Comments
 (0)