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
{{ message }}
Repository navigation
Commit 37a685e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: features/import.feature
+32-8Lines changed: 32 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,10 @@ Feature: Import content.
306
306
@require-wp-5.2@require-mysql
307
307
Scenario: Indicate current file when importing
308
308
Given a WP install
309
-
And I run `wp plugin install --activate wordpress-importer`
309
+
And these installed and active plugins:
310
+
"""
311
+
wordpress-importer
312
+
"""
310
313
311
314
When I run `wp export --filename_format=wordpress.{n}.xml`
312
315
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
@@ -323,7 +326,10 @@ Feature: Import content.
323
326
@require-wp-5.2
324
327
Scenario: Handling of non-existing files and directories
325
328
Given a WP install
326
-
And I run `wp plugin install --activate wordpress-importer`
329
+
And these installed and active plugins:
330
+
"""
331
+
wordpress-importer
332
+
"""
327
333
And I run `wp export`
328
334
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
329
335
And an empty 'empty_test_directory' directory
@@ -403,7 +409,10 @@ Feature: Import content.
403
409
@require-wp-5.2@require-mysql
404
410
Scenario: Specifying a non-existent importer class produces an error
405
411
Given a WP install
406
-
And I run `wp plugin install wordpress-importer --activate`
412
+
And these installed and active plugins:
413
+
"""
414
+
wordpress-importer
415
+
"""
407
416
408
417
When I run `wp export`
409
418
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
@@ -418,7 +427,10 @@ Feature: Import content.
418
427
@require-wp-5.2@require-mysql
419
428
Scenario: Specifying an importer class that is not a subclass of WP_Import produces an error
420
429
Given a WP install
421
-
And I run `wp plugin install wordpress-importer --activate`
430
+
And these installed and active plugins:
431
+
"""
432
+
wordpress-importer
433
+
"""
422
434
423
435
When I run `wp export`
424
436
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
@@ -433,7 +445,10 @@ Feature: Import content.
433
445
@require-wp-5.2@require-mysql
434
446
Scenario: Specifying a valid custom importer subclass succeeds
435
447
Given a WP install
436
-
And I run `wp plugin install wordpress-importer --activate`
448
+
And these installed and active plugins:
449
+
"""
450
+
wordpress-importer
451
+
"""
437
452
And a wp-content/mu-plugins/custom-importer.php file:
438
453
"""
439
454
<?php
@@ -461,7 +476,10 @@ Feature: Import content.
461
476
@require-wp-5.2@require-mysql
462
477
Scenario: Import from STDIN
463
478
Given a WP install
464
-
And I run `wp plugin install wordpress-importer --activate`
479
+
And these installed and active plugins:
480
+
"""
481
+
wordpress-importer
482
+
"""
465
483
And I run `wp site empty --yes`
466
484
And I run `wp post generate --post_type=post --count=2`
467
485
@@ -503,7 +521,10 @@ Feature: Import content.
503
521
@require-wp-5.2@require-mysql
504
522
Scenario: Import from a URL
505
523
Given a WP install
506
-
And I run `wp plugin install wordpress-importer --activate`
524
+
And these installed and active plugins:
525
+
"""
526
+
wordpress-importer
527
+
"""
507
528
508
529
When I run `wp import https://raw.githubusercontent.com/WordPress/theme-test-data/b47acf980696897936265182cb684dca648476c7/theme-preview.xml --authors=skip`
509
530
Then STDOUT should contain:
@@ -523,7 +544,10 @@ Feature: Import content.
523
544
@require-wp-5.2@require-mysql
524
545
Scenario: Import attachments from a local source directory
525
546
Given a WP install
526
-
And I run `wp plugin install wordpress-importer --activate`
547
+
And these installed and active plugins:
548
+
"""
549
+
wordpress-importer
550
+
"""
527
551
And I run `mkdir sources`
528
552
And I run `php -r "file_put_contents('sources/test.png', base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=='));"`
0 commit comments