@@ -17,7 +17,7 @@ Feature: Manage term custom fields
1717 When I run `wp term migrate apple --by=slug --from=category --to=post_tag`
1818 Then STDOUT should be:
1919 """
20- Term 'apple' assigned to post 4 .
20+ Term 'apple' assigned to post {POST_ID} .
2121 Term 'apple' migrated.
2222 Old instance of term 'apple' removed from its original taxonomy.
2323 Success: Migrated the term 'apple' from taxonomy 'category' to taxonomy 'post_tag' for 1 post.
@@ -41,12 +41,12 @@ Feature: Manage term custom fields
4141 When I run `wp term migrate {TERM_ID} --by=slug --from=category --to=post_tag`
4242 Then STDOUT should be:
4343 """
44- Term '{TERM_ID}' assigned to post 4 .
44+ Term '{TERM_ID}' assigned to post {POST_ID} .
4545 Term '{TERM_ID}' migrated.
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.
0 commit comments