Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions features/extension-download.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Feature: Download WordPress.org extensions without loading WordPress
Scenario: Downloading a plugin package to a custom path
Given an empty directory

When I run `wp plugin download debug-bar --target-path=/tmp/wp-cli-download-test-plugin`
When I run `wp plugin download debug-bar --target-path="{RUN_DIR}/custom-path"`
Then STDOUT should contain:
"""
Success: Downloaded plugin package to
Expand Down Expand Up @@ -103,7 +103,7 @@ Feature: Download WordPress.org extensions without loading WordPress
Scenario: Downloading a theme package to a custom path
Given an empty directory

When I run `wp theme download twentytwelve --target-path=/tmp/wp-cli-download-test-theme`
When I run `wp theme download twentytwelve --target-path="{RUN_DIR}/custom-path"`
Then STDOUT should contain:
"""
Success: Downloaded theme package to
Expand Down
6 changes: 4 additions & 2 deletions features/plugin-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ Feature: Install WordPress plugins
Scenario: Can't install plugin that requires a newer version of WordPress
Given a WP install

When I run `wp core download --version=6.4 --force`
And I run `rm -r wp-content/themes/*`
# May produce a warning if the checksums for the version being replaced cannot be retrieved, e.g. for a development build.
When I try `wp core download --version=6.4 --force`
Then the return code should be 0
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

When I run `rm -r wp-content/themes/*`
And I try `wp plugin install wp-super-cache`
Then STDERR should contain:
"""
Expand Down
6 changes: 4 additions & 2 deletions features/theme-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ Feature: Install WordPress themes
Scenario: Can't install theme that requires a newer version of WordPress
Given a WP install

When I run `wp core download --version=6.4 --force`
And I run `rm -r wp-content/themes/*`
# May produce a warning if the checksums for the version being replaced cannot be retrieved, e.g. for a development build.
When I try `wp core download --version=6.4 --force`
Then the return code should be 0
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

When I run `rm -r wp-content/themes/*`
And I try `wp theme install twentytwentyfive`
Then STDERR should contain:
"""
Expand Down