diff --git a/features/core-check-update.feature b/features/core-check-update.feature index 95fb96ec..3eda2d73 100644 --- a/features/core-check-update.feature +++ b/features/core-check-update.feature @@ -1,5 +1,7 @@ Feature: Check for more recent versions + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Check for update via Version Check API Given a WP install And I try `wp theme install twentytwenty --activate` diff --git a/features/core-install.feature b/features/core-install.feature index cf2d2252..8fc13cfd 100644 --- a/features/core-install.feature +++ b/features/core-install.feature @@ -1,5 +1,8 @@ Feature: Install WordPress core + # TODO: Requires investigation for SQLite support. + # See https://github.com/wp-cli/core-command/issues/244 + @require-mysql Scenario: Two WordPress installs sharing the same user table won't update existing user Given an empty directory And WP files @@ -36,7 +39,7 @@ Feature: Install WordPress core When I run `wp --path=second user get testadmin --field=user_pass` Then save STDOUT as {ORIGINAL_PASSWORD} - When I run `wp core config {CORE_CONFIG_SETTINGS} --extra-php < extra-config` + When I run `wp config create {CORE_CONFIG_SETTINGS} --skip-check --extra-php < extra-config` Then STDOUT should be: """ Success: Generated 'wp-config.php' file. @@ -81,6 +84,9 @@ Feature: Install WordPress core wp_users """ + # TODO: Requires investigation for SQLite support. + # See https://github.com/wp-cli/core-command/issues/244 + @require-mysql Scenario: Two WordPress installs sharing the same user table will create new user Given an empty directory And WP files @@ -107,7 +113,7 @@ Feature: Install WordPress core admin """ - When I run `wp core config {CORE_CONFIG_SETTINGS} --extra-php < extra-config` + When I run `wp config create {CORE_CONFIG_SETTINGS} --skip-check --extra-php < extra-config` Then STDOUT should be: """ Success: Generated 'wp-config.php' file. @@ -187,7 +193,7 @@ Feature: Install WordPress core And the wp-settings.php file should exist And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist - When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE` + When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE --skip-check` Then STDOUT should be: """ Success: Generated 'wp-config.php' file. @@ -216,6 +222,8 @@ Feature: Install WordPress core Kategorien """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Install WordPress with locale set to de_DE on WP >= 4.0 Given an empty directory And an empty cache @@ -231,7 +239,7 @@ Feature: Install WordPress core And the wp-settings.php file should exist And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist - When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE` + When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE --skip-check` Then STDOUT should be: """ Success: Generated 'wp-config.php' file. @@ -286,6 +294,7 @@ Feature: Install WordPress core Addition of multisite constants to 'wp-config.php' skipped. You need to add them manually: """ + @require-mysql Scenario: Install WordPress multisite with existing multisite constants in wp-config file Given an empty directory And WP files @@ -302,7 +311,7 @@ Feature: Install WordPress core define( 'BLOG_ID_CURRENT_SITE', 1 ); """ - When I run `wp core config {CORE_CONFIG_SETTINGS} --extra-php < extra-config` + When I run `wp config create {CORE_CONFIG_SETTINGS} --extra-php < extra-config` Then STDOUT should be: """ Success: Generated 'wp-config.php' file. diff --git a/features/core-update-db.feature b/features/core-update-db.feature index 3d16991b..26c0b868 100644 --- a/features/core-update-db.feature +++ b/features/core-update-db.feature @@ -1,5 +1,7 @@ Feature: Update core's database + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Update db on a single site Given a WP install And a disable_sidebar_check.php file: @@ -25,6 +27,8 @@ Feature: Update core's database Success: WordPress database already at latest db version 47018. """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Dry run update db on a single site Given a WP install And a disable_sidebar_check.php file: @@ -51,6 +55,8 @@ Feature: Update core's database 45805 """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Update db across network Given a WP multisite install And a disable_sidebar_check.php file: @@ -91,6 +97,8 @@ Feature: Update core's database {UPDATE_VERSION} """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Update db across network, dry run Given a WP multisite install And a disable_sidebar_check.php file: diff --git a/features/core-update.feature b/features/core-update.feature index 8c4e650f..3f50c6ad 100644 --- a/features/core-update.feature +++ b/features/core-update.feature @@ -1,5 +1,7 @@ Feature: Update WordPress core + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Update from a ZIP file Given a WP install And I try `wp theme install twentytwenty --activate` @@ -63,6 +65,8 @@ Feature: Update WordPress core {WP_VERSION-4.1-latest} """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Update to the latest minor release (PHP 7.1 compatible with WP >= 3.9) Given a WP install And I try `wp theme install twentytwenty --activate` @@ -97,6 +101,8 @@ Feature: Update WordPress core {WP_VERSION-4.1-latest} """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Core update from cache Given a WP install And I try `wp theme install twentytwenty --activate` @@ -146,6 +152,8 @@ Feature: Update WordPress core Updating """ + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Ensure cached partial upgrades aren't used in full upgrade Given a WP install And I try `wp theme install twentytwenty --activate` @@ -215,7 +223,8 @@ Feature: Update WordPress core wordpress-4.2.4-partial-1-en_US.zip """ - @less-than-php-7.3 + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @less-than-php-7.3 @require-mysql Scenario: Make sure files are cleaned up Given a WP install And I try `wp theme install twentytwenty --activate` @@ -250,6 +259,8 @@ Feature: Update WordPress core When I run `wp post create --post_title='Test post' --porcelain` Then STDOUT should be a number + # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+ + @require-mysql Scenario: Make sure files are cleaned up with mixed case Given a WP install And I try `wp theme install twentytwenty --activate` diff --git a/features/core.feature b/features/core.feature index c08c217e..df9ab7c9 100644 --- a/features/core.feature +++ b/features/core.feature @@ -1,5 +1,8 @@ Feature: Manage WordPress installation + # `wp db create` does not yet work on SQLite, + # See https://github.com/wp-cli/db-command/issues/234 + @require-mysql Scenario: Database doesn't exist Given an empty directory And WP files @@ -210,6 +213,9 @@ Feature: Manage WordPress installation 1 """ + # `wp db reset` does not yet work on SQLite, + # See https://github.com/wp-cli/db-command/issues/234 + @require-mysql Scenario: Install multisite from scratch, with MULTISITE already set in wp-config.php Given a WP multisite install And I run `wp db reset --yes` @@ -244,6 +250,8 @@ Feature: Manage WordPress installation """ And the return code should be 1 + # SQLite compat blocked by https://github.com/wp-cli/wp-cli-tests/pull/188. + @require-mysql Scenario: Custom wp-content directory Given a WP install And a custom wp-content directory @@ -301,7 +309,9 @@ Feature: Manage WordPress installation """ And the return code should be 1 - @require-php-7.0 + # `wp db create` does not yet work on SQLite, + # See https://github.com/wp-cli/db-command/issues/234 + @require-php-7.0 @require-mysql Scenario: Install WordPress in a subdirectory Given an empty directory And a wp-config.php file: