File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Feature: Manage term custom fields
4646 Old instance of term '{TERM_ID}' removed from its original taxonomy.
4747 Success: Migrated the term '{TERM_ID}' from taxonomy 'category' to taxonomy 'post_tag' for 1 post.
4848 """
49-
49+
5050 @require-wp-4.4
5151 Scenario : Migrate a term in multiple posts
5252 Given a WP install
@@ -63,16 +63,16 @@ Feature: Manage term custom fields
6363
6464 When I run `wp post create --post_title='Test post 2' --porcelain`
6565 Then STDOUT should be a number
66- And save STDOUT as {POST_ID }
66+ And save STDOUT as {POST_ID_2 }
6767
68- When I run `wp post term set {POST_ID } category orange`
68+ When I run `wp post term set {POST_ID_2 } category orange`
6969 Then STDOUT should not be empty
7070
7171 When I run `wp term migrate orange --by=slug --from=category --to=post_tag`
7272 Then STDOUT should be:
7373 """
74- Term 'orange' assigned to post 4 .
75- Term 'orange' assigned to post 5 .
74+ Term 'orange' assigned to post {POST_ID} .
75+ Term 'orange' assigned to post {POST_ID_2} .
7676 Term 'orange' migrated.
7777 Old instance of term 'orange' removed from its original taxonomy.
7878 Success: Migrated the term 'orange' from taxonomy 'category' to taxonomy 'post_tag' for 2 posts.
You can’t perform that action at this time.
0 commit comments