Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions features/import.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
Feature: Import content.

Scenario: Importing requires plugin installation
Given a WP install

When I try `wp import file.xml --authors=create`
Then STDERR should contain:
"""
Error: WordPress Importer needs to be installed. Try 'wp plugin install wordpress-importer --activate'.
"""

@require-wp-5.2
Scenario: Basic export then import
Given a WP install
And I run `wp site empty --yes`
Expand Down Expand Up @@ -41,6 +51,7 @@ Feature: Import content.
When I run `wp import {EXPORT_FILE} --authors=skip --skip=image_resize`
Then STDOUT should not be empty

@require-wp-5.2
Scenario: Export and import a directory of files
Given a WP install
And I run `mkdir export-posts`
Expand Down Expand Up @@ -90,6 +101,7 @@ Feature: Import content.
100
"""

@require-wp-5.2
Scenario: Export and import a directory of files with .wxr and .xml extensions.
Given a WP install
And I run `mkdir export`
Expand Down Expand Up @@ -136,7 +148,7 @@ Feature: Import content.
2
"""

@require-wp-4.0
@require-wp-5.2
Scenario: Export and import page and referencing menu item
Given a WP install
And I run `wp site empty --yes`
Expand Down Expand Up @@ -213,7 +225,7 @@ Feature: Import content.
2
"""

@require-wp-4.0
@require-wp-5.2
Scenario: Export and import page and referencing menu item in separate files
Given a WP install
And I run `wp site empty --yes`
Expand Down Expand Up @@ -291,6 +303,7 @@ Feature: Import content.
2
"""

@require-wp-5.2
Scenario: Indicate current file when importing
Given a WP install
And I run `wp plugin install --activate wordpress-importer`
Expand All @@ -307,6 +320,7 @@ Feature: Import content.
(in file wordpress.000.xml)
"""

@require-wp-5.2
Scenario: Handling of non-existing files and directories
Given a WP install
And I run `wp plugin install --activate wordpress-importer`
Expand Down