Skip to content

Commit c6f78f2

Browse files
authored
Merge pull request #288 from michaelw85/verify_410
2 parents bf1e7aa + 0d1e95a commit c6f78f2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

features/core-install.feature

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,25 @@ Feature: Install WordPress core
329329
Then STDOUT should be:
330330
"""
331331
"""
332+
333+
# Added to verify https://github.com/wp-cli/extension-command/issues/410
334+
@require-mysql
335+
Scenario: Install child theme
336+
Given a WP install
337+
When I try `wp theme install https://public-api.wordpress.com/rest/v1/themes/download/rockfield.zip --activate`
338+
Then STDERR should contain:
339+
"""
340+
Error: The parent theme is missing. Please install the "varia-wpcom" parent theme.
341+
"""
342+
343+
When I run `wp theme install https://public-api.wordpress.com/rest/v1/themes/download/varia.zip --activate`
344+
Then STDOUT should contain:
345+
"""
346+
Success: Installed 1 of 1 themes.
347+
"""
348+
349+
When I run `wp theme activate rockfield-wpcom`
350+
Then STDOUT should contain:
351+
"""
352+
Success: Switched to 'Rockfield' theme.
353+
"""

0 commit comments

Comments
 (0)