You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Install WordPress with locale set to de_DE on WP < 4.0
252
+
Scenario: Install WordPress with special characters in the admin password
254
253
Given an empty directory
255
-
And an empty cache
254
+
And WP files
255
+
And wp-config.php
256
256
And a database
257
257
258
-
When I run `wp core download --version=3.7 --locale=de_DE`
259
-
And save STDOUT 'Downloading WordPress ([\d\.]+)' as {VERSION}
260
-
And I run `echo {VERSION}`
258
+
When I run `wp core install --url=localhost:8001 --title=Test --admin_user=wpcli --admin_email=wpcli@example.org --admin_password='R^^CzY;G"iZ@]H9b,' --skip-email`
261
259
Then STDOUT should contain:
262
-
"""
263
-
3.7
264
-
"""
265
-
And the wp-settings.php file should exist
266
-
And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist
267
-
268
-
When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE --skip-check`
269
-
Then STDOUT should be:
270
-
"""
271
-
Success: Generated 'wp-config.php' file.
272
-
"""
273
-
274
-
# Old versions of WP can generate wpdb database errors if the WP tables don't exist, so STDERR may or may not be empty
275
-
When I try `wp core install --url=example.org --title=Test --admin_user=testadmin --admin_email=testadmin@example.com --admin_password=newpassword --locale=de_DE --skip-email`
276
-
Then STDERR should contain:
277
-
"""
278
-
Warning: The flag --locale=de_DE is being ignored as it requires WordPress 4.0+.
279
-
"""
280
-
And STDOUT should contain:
281
260
"""
282
261
Success: WordPress installed successfully.
283
262
"""
263
+
And the return code should be 0
284
264
285
-
When I run `wp core version`
286
-
Then STDOUT should contain:
287
-
"""
288
-
3.7
289
-
"""
290
-
291
-
When I run `wp taxonomy list`
292
-
Then STDOUT should contain:
293
-
"""
294
-
Kategorien
295
-
"""
265
+
When I run `wp user check-password wpcli 'R^^CzY;G"iZ@]H9b,' --escape-chars`
266
+
Then the return code should be 0
296
267
297
268
# This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+
0 commit comments