Unverified Commit 84803224 authored by Peter J. Herrel's avatar Peter J. Herrel
Browse files

add tests for 'wp pll term duplicate'

parent 10c4198e
......@@ -66,3 +66,19 @@ Feature: Manage WordPress taxonomy terms and their translations.
12 14 10
And the return code should be 0
Scenario: Duplicate taxonomy term to one or more languages
When I run `wp pll lang create de de de_DE`
And I run `wp term create post_tag "Just a tag" --porcelain`
And save STDOUT as {TERM_ID}
And I run `wp pll doctor translate`
Then STDOUT should not be empty
When I run `wp pll term duplicate post_tag {TERM_ID}`
Then STDOUT should contain:
Success: Created term 11 (de) < term {TERM_ID} (nl)
And the return code should be 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment