11Feature : Install WordPress core
22
3+ # TODO: Requires investigation for SQLite support.
4+ # See https://github.com/wp-cli/core-command/issues/244
5+ @require-mysql
36 Scenario : Two WordPress installs sharing the same user table won't update existing user
47 Given an empty directory
58 And WP files
@@ -36,7 +39,7 @@ Feature: Install WordPress core
3639 When I run `wp --path=second user get testadmin --field=user_pass`
3740 Then save STDOUT as {ORIGINAL_PASSWORD}
3841
39- When I run `wp core config {CORE_CONFIG_SETTINGS} --extra-php < extra-config`
42+ When I run `wp config create {CORE_CONFIG_SETTINGS} --skip-check --extra-php < extra-config`
4043 Then STDOUT should be:
4144 """
4245 Success: Generated 'wp-config.php' file.
@@ -81,6 +84,9 @@ Feature: Install WordPress core
8184 wp_users
8285 """
8386
87+ # TODO: Requires investigation for SQLite support.
88+ # See https://github.com/wp-cli/core-command/issues/244
89+ @require-mysql
8490 Scenario: Two WordPress installs sharing the same user table will create new user
8591 Given an empty directory
8692 And WP files
@@ -107,7 +113,7 @@ Feature: Install WordPress core
107113 admin
108114 """
109115
110- When I run `wp core config {CORE_CONFIG_SETTINGS} --extra-php < extra-config`
116+ When I run `wp config create {CORE_CONFIG_SETTINGS} --skip-check --extra-php < extra-config`
111117 Then STDOUT should be:
112118 """
113119 Success: Generated 'wp-config.php' file.
@@ -187,7 +193,7 @@ Feature: Install WordPress core
187193 And the wp-settings.php file should exist
188194 And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist
189195
190- When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE`
196+ When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE --skip-check `
191197 Then STDOUT should be:
192198 """
193199 Success: Generated 'wp-config.php' file.
@@ -216,6 +222,8 @@ Feature: Install WordPress core
216222 Kategorien
217223 """
218224
225+ # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+
226+ @require-mysql
219227 Scenario: Install WordPress with locale set to de_DE on WP > = 4.0
220228 Given an empty directory
221229 And an empty cache
@@ -231,7 +239,7 @@ Feature: Install WordPress core
231239 And the wp-settings.php file should exist
232240 And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist
233241
234- When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE`
242+ When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE --skip-check `
235243 Then STDOUT should be:
236244 """
237245 Success: Generated 'wp-config.php' file.
@@ -286,6 +294,7 @@ Feature: Install WordPress core
286294 Addition of multisite constants to 'wp-config.php' skipped. You need to add them manually:
287295 """
288296
297+ @require-mysql
289298 Scenario : Install WordPress multisite with existing multisite constants in wp-config file
290299 Given an empty directory
291300 And WP files
@@ -302,7 +311,7 @@ Feature: Install WordPress core
302311 define( 'BLOG_ID_CURRENT_SITE', 1 );
303312 """
304313
305- When I run `wp core config {CORE_CONFIG_SETTINGS} --extra-php < extra-config`
314+ When I run `wp config create {CORE_CONFIG_SETTINGS} --extra-php < extra-config`
306315 Then STDOUT should be:
307316 """
308317 Success: Generated 'wp-config.php' file.
0 commit comments