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
176
+
Given an empty directory
177
+
And an empty cache
178
+
And a database
179
+
180
+
When I run `wp core download --version=3.7 --locale=de_DE`
181
+
And save STDOUT 'Downloading WordPress ([\d\.]+)' as {VERSION}
182
+
And I run `echo {VERSION}`
183
+
Then STDOUT should contain:
184
+
"""
185
+
3.7
186
+
"""
187
+
And the wp-settings.php file should exist
188
+
And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist
189
+
190
+
When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE`
191
+
Then STDOUT should be:
192
+
"""
193
+
Success: Generated 'wp-config.php' file.
194
+
"""
195
+
196
+
# Old versions of WP can generate wpdb database errors if the WP tables don't exist, so STDERR may or may not be empty
197
+
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`
198
+
Then STDERR should contain:
199
+
"""
200
+
Warning: The flag --locale=de_DE is being ignored as it requires WordPress 4.0+.
201
+
"""
202
+
Then STDOUT should contain:
203
+
"""
204
+
Success: WordPress installed successfully.
205
+
"""
206
+
207
+
When I run `wp core version`
208
+
Then STDOUT should contain:
209
+
"""
210
+
3.7
211
+
"""
212
+
213
+
When I run `wp taxonomy list`
214
+
Then STDOUT should contain:
215
+
"""
216
+
Kategorien
217
+
"""
218
+
219
+
Scenario: Install WordPress with locale set to de_DE on WP >= 4.0
220
+
Given an empty directory
221
+
And an empty cache
222
+
And a database
223
+
224
+
When I run `wp core download --version=5.6 --locale=de_DE`
225
+
And save STDOUT 'Downloading WordPress ([\d\.]+)' as {VERSION}
226
+
And I run `echo {VERSION}`
227
+
Then STDOUT should contain:
228
+
"""
229
+
5.6
230
+
"""
231
+
And the wp-settings.php file should exist
232
+
And the {SUITE_CACHE_DIR}/core/wordpress-{VERSION}-de_DE.tar.gz file should exist
233
+
234
+
When I run `wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --locale=de_DE`
235
+
Then STDOUT should be:
236
+
"""
237
+
Success: Generated 'wp-config.php' file.
238
+
"""
239
+
240
+
# Old versions of WP can generate wpdb database errors if the WP tables don't exist, so STDERR may or may not be empty
241
+
When I run `wp core install --url=example.org --title=Test --admin_user=testadmin --admin_email=testadmin@example.com --admin_password=newpassword --locale=de_DE --skip-email`
242
+
Then STDOUT should contain:
243
+
"""
244
+
Success: WordPress installed successfully.
245
+
"""
246
+
247
+
When I run `wp core version`
248
+
Then STDOUT should contain:
249
+
"""
250
+
5.6
251
+
"""
252
+
253
+
When I run `wp taxonomy list`
254
+
Then STDOUT should contain:
255
+
"""
256
+
Kategorien
257
+
"""
258
+
174
259
Scenario: Install WordPress multisite without specifying the password
0 commit comments