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
180
+
Scenario: Install WordPress with special characters in the admin password
182
181
Given an empty directory
183
-
And an empty cache
182
+
And WP files
183
+
And wp-config.php
184
184
And a database
185
185
186
-
When I run `wp core download --version=3.7 --locale=de_DE`
187
-
And save STDOUT 'Downloading WordPress ([\d\.]+)' as {VERSION}
188
-
And I run `echo {VERSION}`
186
+
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`
189
187
Then STDOUT should contain:
190
-
"""
191
-
3.7
192
-
"""
193
-
And the wp-settings.php file should exist
194
-
And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist
195
-
196
-
When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE --skip-check`
197
-
Then STDOUT should be:
198
-
"""
199
-
Success: Generated 'wp-config.php' file.
200
-
"""
201
-
202
-
# Old versions of WP can generate wpdb database errors if the WP tables don't exist, so STDERR may or may not be empty
203
-
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`
204
-
Then STDERR should contain:
205
-
"""
206
-
Warning: The flag --locale=de_DE is being ignored as it requires WordPress 4.0+.
207
-
"""
208
-
And STDOUT should contain:
209
188
"""
210
189
Success: WordPress installed successfully.
211
190
"""
191
+
And the return code should be 0
212
192
213
-
When I run `wp core version`
214
-
Then STDOUT should contain:
215
-
"""
216
-
3.7
217
-
"""
218
-
219
-
When I run `wp taxonomy list`
220
-
Then STDOUT should contain:
221
-
"""
222
-
Kategorien
223
-
"""
193
+
When I run `wp user check-password wpcli 'R^^CzY;G"iZ@]H9b,' --escape-chars`
194
+
Then the return code should be 0
224
195
225
196
# This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+
0 commit comments