@@ -340,7 +340,7 @@ Feature: Download WordPress
340
340
"""
341
341
And the return code should be 1
342
342
343
- Scenario : Core download without the wp-content/plugins dir
343
+ Scenario : Core download without the full wp-content/plugins dir
344
344
Given an empty directory
345
345
346
346
When I run `wp core download --skip-content`
@@ -349,10 +349,14 @@ Feature: Download WordPress
349
349
Success: WordPress downloaded.
350
350
"""
351
351
And the wp-includes directory should exist
352
- And the wp-content/plugins directory should not exist
352
+ And the wp-content/plugins directory should exist
353
+ And the wp-content/plugins directory should be:
354
+ """
355
+ index.php
356
+ """
353
357
And the wp-includes/js/tinymce/plugins directory should exist
354
358
355
- Scenario : Core download without the wp-content/themes dir
359
+ Scenario : Core download without the full wp-content/themes dir
356
360
Given an empty directory
357
361
358
362
When I run `wp core download --skip-content`
@@ -361,10 +365,14 @@ Feature: Download WordPress
361
365
Success: WordPress downloaded.
362
366
"""
363
367
And the wp-includes directory should exist
364
- And the wp-content/themes directory should not exist
368
+ And the wp-content/themes directory should exist
369
+ And the wp-content/themes directory should be:
370
+ """
371
+ index.php
372
+ """
365
373
And the wp-includes/js/tinymce/themes directory should exist
366
374
367
- Scenario : Core download without the wp-content/plugins dir should work non US locale
375
+ Scenario : Core download without the full wp-content/plugins dir should work non US locale
368
376
Given an empty directory
369
377
370
378
When I run `wp core download --skip-content --version=4.9.11 --locale=nl_NL`
@@ -373,10 +381,14 @@ Feature: Download WordPress
373
381
Success: WordPress downloaded.
374
382
"""
375
383
And the wp-includes directory should exist
376
- And the wp-content/plugins directory should not exist
384
+ And the wp-content/plugins directory should exist
385
+ And the wp-content/plugins directory should be:
386
+ """
387
+ index.php
388
+ """
377
389
And the wp-includes/js/tinymce/plugins directory should exist
378
390
379
- Scenario : Core download without the wp-content/themes dir should work non US locale
391
+ Scenario : Core download without the full wp-content/themes dir should work non US locale
380
392
Given an empty directory
381
393
382
394
When I run `wp core download --skip-content --version=4.9.11 --locale=nl_NL`
@@ -385,10 +397,14 @@ Feature: Download WordPress
385
397
Success: WordPress downloaded.
386
398
"""
387
399
And the wp-includes directory should exist
388
- And the wp-content/themes directory should not exist
400
+ And the wp-content/themes directory should exist
401
+ And the wp-content/themes directory should be:
402
+ """
403
+ index.php
404
+ """
389
405
And the wp-includes/js/tinymce/themes directory should exist
390
406
391
- Scenario : Core download without the wp-content/plugins dir should work if a version is set
407
+ Scenario : Core download without the full wp-content/plugins dir should work if a version is set
392
408
Given an empty directory
393
409
394
410
When I try `wp core download --skip-content --version=4.7`
@@ -397,8 +413,16 @@ Feature: Download WordPress
397
413
Success: WordPress downloaded.
398
414
"""
399
415
And the wp-includes directory should exist
400
- And the wp-content/plugins directory should not exist
401
- And the wp-content/themes directory should not exist
416
+ And the wp-content/plugins directory should exist
417
+ And the wp-content/plugins directory should be:
418
+ """
419
+ index.php
420
+ """
421
+ And the wp-content/themes directory should exist
422
+ And the wp-content/themes directory should be:
423
+ """
424
+ index.php
425
+ """
402
426
And the wp-includes/js/tinymce/themes directory should exist
403
427
And the wp-includes/js/tinymce/plugins directory should exist
404
428
0 commit comments