@@ -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
@@ -105,8 +105,8 @@ Feature: Manage WordPress themes
105105
106106 When I run `wp theme list`
107107 Then STDOUT should be a table containing rows:
108- | name | status | update | version | update_version | auto_update |
109- | twentytwelve | active | available | 1 .5 | {UPDATE_VERSION } | off |
108+ | name | status | update | version | update_version | auto_update | type |
109+ | twentytwelve | active | available | 1 .5 | {UPDATE_VERSION } | off | classic |
110110
111111 When I try `wp theme update`
112112 Then STDERR should be:
@@ -722,8 +722,8 @@ Feature: Manage WordPress themes
722722
723723 When I run `wp theme list`
724724 Then STDOUT should be a table containing rows:
725- | name | status | update | version | update_version | auto_update | requires | requires_php |
726- | example | inactive | unavailable | 1 .0 .0 | 2 .0 .0 | off | 100 | 5 .6 |
725+ | name | status | update | version | update_version | auto_update | type | requires | requires_php |
726+ | example | inactive | unavailable | 1 .0 .0 | 2 .0 .0 | off | classic | 100 | 5 .6 |
727727
728728 When I try `wp theme update example`
729729 Then STDERR should contain:
@@ -765,11 +765,41 @@ Feature: Manage WordPress themes
765765
766766 When I run `wp theme list`
767767 Then STDOUT should be a table containing rows:
768- | name | status | update | version | update_version | auto_update | requires | requires_php |
769- | example | inactive | unavailable | 1 .0 .0 | 2 .0 .0 | off | 3 .7 | 100 |
768+ | name | status | update | version | update_version | auto_update | type | requires | requires_php |
769+ | example | inactive | unavailable | 1 .0 .0 | 2 .0 .0 | off | classic | 3 .7 | 100 |
770770
771771 When I try `wp theme update example`
772772 Then STDERR should contain:
773773 """
774774 Warning: example: This update requires PHP version 100
775775 """
776+
777+ @require-wp-5.9
778+ Scenario : Check theme type field for block themes
779+ Given a WP install
780+
781+ When I run `wp theme list --fields=name,type`
782+ Then STDOUT should be a table containing rows:
783+ | name | type |
784+ | twentytwentyfour | block |
785+
786+ When I run `wp theme get twentytwentyfour --field=type`
787+ Then STDOUT should be:
788+ """
789+ block
790+ """
791+
792+ Scenario : Check theme type field for classic themes
793+ Given a WP install
794+
795+ When I run `wp theme install twentytwelve --force`
796+ And I run `wp theme list --fields=name,type --name=twentytwelve`
797+ Then STDOUT should be a table containing rows:
798+ | name | type |
799+ | twentytwelve | classic |
800+
801+ When I run `wp theme get twentytwelve --field=type`
802+ Then STDOUT should be:
803+ """
804+ classic
805+ """
0 commit comments