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
20 changes: 12 additions & 8 deletions features/export.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,10 @@ Feature: Export content.
"""
wordpress-importer
"""
And I run `wp user create user user@user.com --role=editor --display_name="Test User"`
And I run `wp user create oembed_cache_user oembed_cache@user.com --role=editor --display_name="Oembed User"`
And these setup commands:
| command |
| wp user create user user@user.com --role=editor --display_name="Test User" |
| wp user create oembed_cache_user oembed_cache@user.com --role=editor --display_name="Oembed User" |
And I run `wp post generate --post_type=post --count=10 --post_author=user`
And I run `wp post generate --post_type=oembed_cache --count=1 --post_author=oembed_cache_user`

Expand Down Expand Up @@ -1224,12 +1226,14 @@ Feature: Export content.
@require-wp-5.2
Scenario: Allow export to proceed when orphaned terms are found
Given a WP install
And I run `wp term create category orphan --parent=1`
And I run `wp term create category parent`
And I run `wp term create category child --parent=3`
And I run `wp term create post_tag atag`
And I run `wp term create post_tag btag`
And I run `wp term create post_tag ctag`
And these setup commands:
| command |
| wp term create category orphan --parent=1 |
| wp term create category parent |
| wp term create category child --parent=3 |
| wp term create post_tag atag |
| wp term create post_tag btag |
| wp term create post_tag ctag |
And I run `wp db query "DELETE FROM wp_terms WHERE term_id = 1"`

When I run `wp export --allow_orphan_terms`
Expand Down
Loading