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
12 changes: 8 additions & 4 deletions features/import.feature
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@ Feature: Import content.
2
"""

@less-than-php-7 @require-wp-4.0
@require-wp-4.0
Scenario: Export and import page and referencing menu item
# This will not work with WP 3.7.11 or PHP 7.
# PHP 7 issue: https://wordpress.org/support/topic/importer-fails-to-import-menu-items-in-php7
Given a WP install
And I run `wp site empty --yes`
And I run `wp post generate --count=1`
Expand All @@ -161,6 +159,9 @@ Feature: Import content.
When I run `wp site empty --yes`
Then STDOUT should not be empty

When I run `wp menu create "My Menu"`
Then STDOUT should not be empty

When I run `wp post list --post_type=page --format=count`
Then STDOUT should be:
"""
Expand Down Expand Up @@ -212,7 +213,7 @@ Feature: Import content.
2
"""

@less-than-php-7 @require-wp-4.0
@require-wp-4.0
Scenario: Export and import page and referencing menu item in separate files
Given a WP install
And I run `wp site empty --yes`
Expand All @@ -236,6 +237,9 @@ Feature: Import content.
When I run `wp site empty --yes`
Then STDOUT should not be empty

When I run `wp menu create "My Menu"`
Then STDOUT should not be empty

When I run `wp post list --post_type=page --format=count`
Then STDOUT should be:
"""
Expand Down