Skip to content

Commit 9b4a1d0

Browse files
Increase precision of wp post generate test (#425)
1 parent 216a6a1 commit 9b4a1d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

features/post-generate.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,19 @@ Feature: Generate new WordPress posts
5252

5353
Scenario: Generating post and outputting title and name
5454
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`
5656
Then STDOUT should contain:
5757
"""
58+
Hello world!
5859
Howdy!
5960
Howdy! 2
6061
Howdy! 3
6162
"""
6263
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`
6465
Then STDOUT should contain:
6566
"""
67+
hello-world
6668
howdy
6769
howdy-2
6870
howdy-3

0 commit comments

Comments
 (0)