Skip to content

Commit

Permalink
Increase precision of wp post generate test (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber authored Sep 19, 2023
1 parent 216a6a1 commit 9b4a1d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions features/post-generate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,19 @@ Feature: Generate new WordPress posts

Scenario: Generating post and outputting title and name
When I run `wp post generate --count=3 --post_title=Howdy!`
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`
Then STDOUT should contain:
"""
Hello world!
Howdy!
Howdy! 2
Howdy! 3
"""
And STDERR should be empty
And I run `wp post list --field=post_name --posts_per_page=3`
And I run `wp post list --field=post_name --posts_per_page=4 --orderby=ID --order=asc`
Then STDOUT should contain:
"""
hello-world
howdy
howdy-2
howdy-3
Expand Down

0 comments on commit 9b4a1d0

Please sign in to comment.