File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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+ """
You can’t perform that action at this time.
0 commit comments