Skip to content

Commit 4aebd14

Browse files
Copilotswissspidy
andcommitted
Add type to theme_vars array and fix table spacing in tests
Co-authored-by: swissspidy <[email protected]>
1 parent 0a53603 commit 4aebd14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

features/theme.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 | type |requires | requires_php |
726-
| example | inactive | unavailable | 1.0.0 | 2.0.0 | off | classic | 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:

src/Theme_Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ public function get( $args, $assoc_args ) {
616616
'tags',
617617
'theme_root',
618618
'theme_root_uri',
619+
'type',
619620
];
620621
$theme_obj = new stdClass();
621622
foreach ( $theme_vars as $var ) {

0 commit comments

Comments
 (0)