We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wp post generate
1 parent 216a6a1 commit 9b4a1d0Copy full SHA for 9b4a1d0
1 file changed
features/post-generate.feature
@@ -52,17 +52,19 @@ Feature: Generate new WordPress posts
52
53
Scenario: Generating post and outputting title and name
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`
+ And I run `wp post list --field=post_title --posts_per_page=4 --orderby=ID --order=asc`
56
Then STDOUT should contain:
57
"""
58
+ Hello world!
59
Howdy!
60
Howdy! 2
61
Howdy! 3
62
63
And STDERR should be empty
- 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`
65
66
67
+ hello-world
68
howdy
69
howdy-2
70
howdy-3
0 commit comments