@@ -60,3 +60,55 @@ Feature: Generate new WordPress posts
6060 howdy-3
6161 """
6262 And STDERR should be empty
63+
64+ Scenario : Generating posts with post_date argument without time
65+ When I run `wp post generate --count=1 --post_date="2018-07-01" `
66+ And I run `wp post list --field=post_date`
67+ Then STDOUT should contain:
68+ """
69+ 2018-07-01 00:00:00
70+ """
71+ And I run `wp post list --field=post_date_gmt`
72+ Then STDOUT should contain:
73+ """
74+ 2018-07-01 00:00:00
75+ """
76+
77+ 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" `
79+ And I run `wp post list --field=post_date`
80+ Then STDOUT should contain:
81+ """
82+ 2018-07-02 00:00:00
83+ """
84+ And I run `wp post list --field=post_date_gmt`
85+ Then STDOUT should contain:
86+ """
87+ 2018-07-02 00:00:00
88+ """
89+
90+ Scenario : Generating posts with post_date_gmt argument without time
91+ When I run `wp post generate --count=1 --post_date_gmt="2018-07-03" `
92+ And I run `wp post list --field=post_date`
93+ Then STDOUT should contain:
94+ """
95+ 2018-07-03 00:00:00
96+ """
97+ And I run `wp post list --field=post_date_gmt`
98+ Then STDOUT should contain:
99+ """
100+ 2018-07-03 00:00:00
101+ """
102+
103+ 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" `
105+ And I run `wp post list --field=post_date`
106+ Then STDOUT should contain:
107+ """
108+ 2018-07-04 00:00:00
109+ """
110+ And I run `wp post list --field=post_date_gmt`
111+ Then STDOUT should contain:
112+ """
113+ 2018-07-04 00:00:00
114+ """
0 commit comments