diff --git a/features/extension-download.feature b/features/extension-download.feature index f05f5eef..18d0e295 100644 --- a/features/extension-download.feature +++ b/features/extension-download.feature @@ -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 @@ -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 diff --git a/features/plugin-install.feature b/features/plugin-install.feature index 36dfa55d..bd880947 100644 --- a/features/plugin-install.feature +++ b/features/plugin-install.feature @@ -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 + When I run `rm -r wp-content/themes/*` And I try `wp plugin install wp-super-cache` Then STDERR should contain: """ diff --git a/features/theme-install.feature b/features/theme-install.feature index b4bd2652..bf3302cf 100644 --- a/features/theme-install.feature +++ b/features/theme-install.feature @@ -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 + When I run `rm -r wp-content/themes/*` And I try `wp theme install twentytwentyfive` Then STDERR should contain: """