File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,24 @@ Feature: Generate new WordPress posts
4141 """
4242 Success:
4343 """
44- Scenario : Generating post and output title
45- When I run `wp post generate --count=1 --post_title=Howdy!`
46- And I run `wp post list --field=post_title --posts_per_page=1`
44+
45+ Scenario : Generating post and outputting title and name
46+ When I run `wp post generate --count=3 --post_title=Howdy!`
47+ When I run `wp post list --format=count`
48+ And save STDOUT as {POST_COUNT}
49+ And I run `wp post list --field=post_title --posts_per_page={POST_COUNT}`
4750 Then STDOUT should contain:
4851 """
4952 Howdy!
53+ Howdy! 2
54+ Howdy! 3
55+ """
56+ And STDERR should be empty
57+ And I run `wp post list --field=post_name --posts_per_page={POST_COUNT}`
58+ Then STDOUT should contain:
59+ """
60+ howdy
61+ howdy-2
62+ howdy-3
5063 """
5164 And STDERR should be empty
You can’t perform that action at this time.
0 commit comments