File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,18 @@ Feature: Create Duplicate WordPress post from existing posts.
77 When I run `wp term create category "Test Category" --porcelain`
88 Then save STDOUT as {TERM_ID}
99
10+ When I run `wp term create post_tag "Test Tag" --porcelain`
11+ Then save STDOUT as {TAG_ID}
12+
1013 When I run `wp post create --post_title='Test Duplicate Post' --post_category={TERM_ID} --porcelain`
1114 And save STDOUT as {POST_ID}
1215
16+ When I run `wp post term add {POST_ID} post_tag {TAG_ID} --by=id`
17+ Then STDOUT should contain:
18+ """*
19+ Success: Added term.
20+ """
21+
1322 When I run `wp post create --from-post={POST_ID} --porcelain`
1423 Then STDOUT should be a number
1524 And save STDOUT as {DUPLICATE_POST_ID}
@@ -25,6 +34,13 @@ Feature: Create Duplicate WordPress post from existing posts.
2534 """
2635 {TERM_ID}
2736 """
37+
38+ When I run `wp post term list {DUPLICATE_POST_ID} post_tag --field=term_id`
39+ Then STDOUT should be:
40+ """
41+ {TAG_ID}
42+ """
43+
2844 @require-wp-4.4
2945 Scenario : Generate duplicate post with post metadata.
3046 When I run `wp post create --post_title='Test Post' --meta_input='{"key1":"value1","key2":"value2"}' --porcelain`
You can’t perform that action at this time.
0 commit comments