Skip to content

#410 Add test validating installing a child theme before a parent is … #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions features/core-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,25 @@ Feature: Install WordPress core
Then STDOUT should be:
"""
"""

# Added to verify https://github.com/wp-cli/extension-command/issues/410
@require-mysql
Scenario: Install child theme
Given a WP install
When I try `wp theme install https://public-api.wordpress.com/rest/v1/themes/download/rockfield.zip --activate`
Then STDERR should contain:
"""
Error: The parent theme is missing. Please install the "varia-wpcom" parent theme.
"""

When I run `wp theme install https://public-api.wordpress.com/rest/v1/themes/download/varia.zip --activate`
Then STDOUT should contain:
"""
Success: Installed 1 of 1 themes.
"""

When I run `wp theme activate rockfield-wpcom`
Then STDOUT should contain:
"""
Success: Switched to 'Rockfield' theme.
"""