File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,18 @@ Feature: Manage WordPress posts
365
365
| Publish post | publish -post | publish |
366
366
| Sample Page | sample -page | publish |
367
367
368
+ When I run `wp post create --post_title='old post' --post_date='2023-01-24T09:52:00.000Z' `
369
+ And I run `wp post create --post_title='new post' --post_date='2025-01-24T09:52:00.000Z' `
370
+ And I run `wp post list --field=post_title --date_query='{"before":{"year":"2024"}}' `
371
+ Then STDOUT should contain:
372
+ """
373
+ old post
374
+ """
375
+ And STDOUT should not contain:
376
+ """
377
+ new post
378
+ """
379
+
368
380
Scenario : Update categories on a post
369
381
When I run `wp term create category "Test Category" --porcelain`
370
382
Then save STDOUT as {TERM_ID}
You can’t perform that action at this time.
0 commit comments