@@ -39,9 +39,9 @@ Feature: Download WordPress
3939 When I run `wp core download --force`
4040 Then the wp-settings.php file should exist
4141 And STDOUT should contain:
42- """
43- Using cached file '{SUITE_CACHE_DIR}/core/wordpress-{VERSION}-en_US.tar.gz'...
44- """
42+ """
43+ Using cached file '{SUITE_CACHE_DIR}/core/wordpress-{VERSION}-en_US.tar.gz'...
44+ """
4545
4646 Scenario : Localized install
4747 Given an empty directory
@@ -115,17 +115,18 @@ Feature: Download WordPress
115115
116116 Scenario : Make sure files are cleaned up
117117 Given an empty directory
118+
118119 When I run `wp core download --version=4.4`
119120 Then the wp-includes/rest-api.php file should exist
120- Then the wp-includes/class-wp-comment.php file should exist
121+ And the wp-includes/class-wp-comment.php file should exist
121122 And STDERR should not contain:
122123 """
123124 Warning: Failed to find WordPress version. Please cleanup files manually.
124125 """
125126
126127 When I run `wp core download --version=4.3.2 --force`
127128 Then the wp-includes/rest-api.php file should not exist
128- Then the wp-includes/class-wp-comment.php file should not exist
129+ And the wp-includes/class-wp-comment.php file should not exist
129130 And STDOUT should not contain:
130131 """
131132 File removed: wp-content
@@ -238,9 +239,9 @@ Feature: Download WordPress
238239 When I try `wp core download --version=nightly --locale=de_DE`
239240 Then the return code should be 1
240241 And STDERR should contain:
241- """
242- Error: Nightly builds are only available for the en_US locale.
243- """
242+ """
243+ Error: Nightly builds are only available for the en_US locale.
244+ """
244245
245246 Scenario : Installing a release candidate or beta version
246247 Given an empty directory
@@ -249,7 +250,7 @@ Feature: Download WordPress
249250 # Test with incorrect case.
250251 When I try `wp core download --version=4.6-rc2`
251252 Then the return code should be 1
252- Then STDERR should contain:
253+ And STDERR should contain:
253254 """
254255 Error: Release not found.
255256 """
@@ -281,62 +282,62 @@ Feature: Download WordPress
281282 Scenario : Fail if path can't be created
282283 Given an empty directory
283284 And a non-directory-path file:
284- """
285- """
285+ """
286+ """
286287
287288 When I try `wp core download --path=non-directory-path`
288289 Then STDERR should contain:
289- """
290- Failed to create directory
291- """
290+ """
291+ Failed to create directory
292+ """
292293 And STDERR should contain:
293- """
294- /non-directory-path/
295- """
294+ """
295+ /non-directory-path/
296+ """
296297 And the return code should be 1
297298
298299 When I try `WP_CLI_STRICT_ARGS_MODE=1 wp core download --path=non-directory-path`
299300 Then STDERR should contain:
300- """
301- Failed to create directory
302- """
301+ """
302+ Failed to create directory
303+ """
303304 And STDERR should contain:
304- """
305- non-directory-path/
306- """
305+ """
306+ non-directory-path/
307+ """
307308 And the return code should be 1
308309
309310 When I try `WP_CLI_STRICT_ARGS_MODE=1 wp core download --path=non-directory-path\\`
310311 Then STDERR should contain:
311- """
312- Failed to create directory
313- """
312+ """
313+ Failed to create directory
314+ """
314315 And STDERR should contain:
315- """
316- non-directory-path/
317- """
316+ """
317+ non-directory-path/
318+ """
318319 And the return code should be 1
319320
320321 When I try `wp core download --path=/root-level-directory`
321322 Then STDERR should contain:
322- """
323- Insufficient permission to create directory
324- """
323+ """
324+ Insufficient permission to create directory
325+ """
325326 And STDERR should contain:
326- """
327- /root-level-directory/
328- """
327+ """
328+ /root-level-directory/
329+ """
329330 And the return code should be 1
330331
331332 When I try `WP_CLI_STRICT_ARGS_MODE=1 wp core download --path=/root-level-directory`
332333 Then STDERR should contain:
333- """
334- Insufficient permission to create directory
335- """
334+ """
335+ Insufficient permission to create directory
336+ """
336337 And STDERR should contain:
337- """
338- /root-level-directory/
339- """
338+ """
339+ /root-level-directory/
340+ """
340341 And the return code should be 1
341342
342343 Scenario : Core download without the full wp-content/plugins dir
@@ -366,9 +367,9 @@ Feature: Download WordPress
366367 And the wp-includes directory should exist
367368 And the wp-content/themes directory should exist
368369 And the wp-content/themes directory should be:
369- """
370- index.php
371- """
370+ """
371+ index.php
372+ """
372373 And the wp-includes/js/tinymce/themes directory should exist
373374
374375 Scenario : Core download without the full wp-content/plugins dir should work non US locale
@@ -382,9 +383,9 @@ Feature: Download WordPress
382383 And the wp-includes directory should exist
383384 And the wp-content/plugins directory should exist
384385 And the wp-content/plugins directory should be:
385- """
386- index.php
387- """
386+ """
387+ index.php
388+ """
388389 And the wp-includes/js/tinymce/plugins directory should exist
389390
390391 Scenario : Core download without the full wp-content/themes dir should work non US locale
@@ -398,9 +399,9 @@ Feature: Download WordPress
398399 And the wp-includes directory should exist
399400 And the wp-content/themes directory should exist
400401 And the wp-content/themes directory should be:
401- """
402- index.php
403- """
402+ """
403+ index.php
404+ """
404405 And the wp-includes/js/tinymce/themes directory should exist
405406
406407 Scenario : Core download without the full wp-content/plugins dir should work if a version is set
@@ -414,14 +415,14 @@ Feature: Download WordPress
414415 And the wp-includes directory should exist
415416 And the wp-content/plugins directory should exist
416417 And the wp-content/plugins directory should be:
417- """
418- index.php
419- """
418+ """
419+ index.php
420+ """
420421 And the wp-content/themes directory should exist
421422 And the wp-content/themes directory should be:
422- """
423- index.php
424- """
423+ """
424+ index.php
425+ """
425426 And the wp-includes/js/tinymce/themes directory should exist
426427 And the wp-includes/js/tinymce/plugins directory should exist
427428
@@ -474,12 +475,12 @@ Feature: Download WordPress
474475 """
475476 And the return code should be 1
476477
477- Scenario : Allow installing major version with trailing zero
478+ Scenario : Allow installing major version with trailing zero
478479 Given an empty directory
479480
480481 When I run `wp core download --version=6.7.0`
481482 Then STDOUT should contain:
482- """
483- Success:
484- """
483+ """
484+ Success:
485+ """
485486
0 commit comments