File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,19 @@ Feature: Generate new WordPress posts
52
52
53
53
Scenario : Generating post and outputting title and name
54
54
When I run `wp post generate --count=3 --post_title=Howdy!`
55
- And I run `wp post list --field=post_title --posts_per_page=3 `
55
+ And I run `wp post list --field=post_title --posts_per_page=4 --orderby=ID --order=asc `
56
56
Then STDOUT should contain:
57
57
"""
58
+ Hello world!
58
59
Howdy!
59
60
Howdy! 2
60
61
Howdy! 3
61
62
"""
62
63
And STDERR should be empty
63
- And I run `wp post list --field=post_name --posts_per_page=3 `
64
+ And I run `wp post list --field=post_name --posts_per_page=4 --orderby=ID --order=asc `
64
65
Then STDOUT should contain:
65
66
"""
67
+ hello-world
66
68
howdy
67
69
howdy-2
68
70
howdy-3
You can’t perform that action at this time.
0 commit comments