Skip to content

Commit 33a01a1

Browse files
author
Govind Kumar
committed
Added function test for post generate command.
1 parent fc01507 commit 33a01a1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

features/post-generate.feature

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ Feature: Generate new WordPress posts
4141
"""
4242
Success:
4343
"""
44-
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`
47+
Then STDOUT should contain:
48+
"""
49+
Howdy!
50+
"""
51+
And STDERR should be empty

0 commit comments

Comments
 (0)