Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"wp-cli/extension-command": "^1.2 || ^2 || ^3",
"wp-cli/import-command": "^1 || ^2 || ^3",
"wp-cli/media-command": "^1 || ^2 || ^3",
"wp-cli/wp-cli-tests": "^5"
"wp-cli/wp-cli-tests": "dev-setup-commands-step as 5.3.99"
},
"config": {
"process-timeout": 7200,
Expand Down
20 changes: 12 additions & 8 deletions features/export.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,10 @@ Feature: Export content.
Scenario: Export posts should not include oembed_cache posts user information
Given a WP install
And I run `wp plugin install wordpress-importer --activate`
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 @@ -1197,12 +1199,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