Skip to content

Commit f2ea4ad

Browse files
committed
Specify non-zero times in tests
1 parent 2ed222e commit f2ea4ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

features/post-generate.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ Feature: Generate new WordPress posts
7575
"""
7676

7777
Scenario: Generating posts with post_date argument with time
78-
When I run `wp post generate --count=1 --post_date="2018-07-02 00:00:00"`
78+
When I run `wp post generate --count=1 --post_date="2018-07-02 02:21:05"`
7979
And I run `wp post list --field=post_date`
8080
Then STDOUT should contain:
8181
"""
82-
2018-07-02 00:00:00
82+
2018-07-02 02:21:05
8383
"""
8484
And I run `wp post list --field=post_date_gmt`
8585
Then STDOUT should contain:
8686
"""
87-
2018-07-02 00:00:00
87+
2018-07-02 02:21:05
8888
"""
8989

9090
Scenario: Generating posts with post_date_gmt argument without time
@@ -101,16 +101,16 @@ Feature: Generate new WordPress posts
101101
"""
102102

103103
Scenario: Generating posts with post_date_gmt argument with time
104-
When I run `wp post generate --count=1 --post_date_gmt="2018-07-04 00:00:00"`
104+
When I run `wp post generate --count=1 --post_date_gmt="2018-07-04 12:34:56"`
105105
And I run `wp post list --field=post_date`
106106
Then STDOUT should contain:
107107
"""
108-
2018-07-04 00:00:00
108+
2018-07-04 12:34:56
109109
"""
110110
And I run `wp post list --field=post_date_gmt`
111111
Then STDOUT should contain:
112112
"""
113-
2018-07-04 00:00:00
113+
2018-07-04 12:34:56
114114
"""
115115

116116
Scenario: Generating posts with post_date argument with hyphenated time

0 commit comments

Comments
 (0)