@@ -17,7 +17,7 @@ Feature: Manage term custom fields
17
17
When I run `wp term migrate apple --by=slug --from=category --to=post_tag`
18
18
Then STDOUT should be:
19
19
"""
20
- Term 'apple' assigned to post 4 .
20
+ Term 'apple' assigned to post {POST_ID} .
21
21
Term 'apple' migrated.
22
22
Old instance of term 'apple' removed from its original taxonomy.
23
23
Success: Migrated the term 'apple' from taxonomy 'category' to taxonomy 'post_tag' for 1 post.
@@ -41,12 +41,12 @@ Feature: Manage term custom fields
41
41
When I run `wp term migrate {TERM_ID} --by=slug --from=category --to=post_tag`
42
42
Then STDOUT should be:
43
43
"""
44
- Term '{TERM_ID}' assigned to post 4 .
44
+ Term '{TERM_ID}' assigned to post {POST_ID} .
45
45
Term '{TERM_ID}' migrated.
46
46
Old instance of term '{TERM_ID}' removed from its original taxonomy.
47
47
Success: Migrated the term '{TERM_ID}' from taxonomy 'category' to taxonomy 'post_tag' for 1 post.
48
48
"""
49
-
49
+
50
50
@require-wp-4.4
51
51
Scenario : Migrate a term in multiple posts
52
52
Given a WP install
@@ -63,16 +63,16 @@ Feature: Manage term custom fields
63
63
64
64
When I run `wp post create --post_title='Test post 2' --porcelain`
65
65
Then STDOUT should be a number
66
- And save STDOUT as {POST_ID }
66
+ And save STDOUT as {POST_ID_2 }
67
67
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`
69
69
Then STDOUT should not be empty
70
70
71
71
When I run `wp term migrate orange --by=slug --from=category --to=post_tag`
72
72
Then STDOUT should be:
73
73
"""
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} .
76
76
Term 'orange' migrated.
77
77
Old instance of term 'orange' removed from its original taxonomy.
78
78
Success: Migrated the term 'orange' from taxonomy 'category' to taxonomy 'post_tag' for 2 posts.
0 commit comments