We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76114c9 commit d9d24c5Copy full SHA for d9d24c5
features/post.feature
@@ -365,6 +365,18 @@ Feature: Manage WordPress posts
365
| Publish post | publish-post | publish |
366
| Sample Page | sample-page | publish |
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
+
380
Scenario: Update categories on a post
381
When I run `wp term create category "Test Category" --porcelain`
382
Then save STDOUT as {TERM_ID}
0 commit comments