diff --git a/features/post.feature b/features/post.feature index f7a543b59..93f44abeb 100644 --- a/features/post.feature +++ b/features/post.feature @@ -737,9 +737,17 @@ Feature: Manage WordPress posts When I run `wp post meta add {TIMED_ID} color blue` Then STDOUT should not be empty - When I run `wp post create --post_title='Locked' --post_status=publish --post_password=secret --porcelain` + When I run `wp post create --post_title='Locked' --post_status=publish --post_password=secret --post_date='2021-02-03 10:20:30' --porcelain` Then STDOUT should be a number + # The other posts get fixed dates too, so that the current time cannot + # match the time of day filters below by chance. + When I run `wp post update 1 --post_date='2019-01-01 12:00:00'` + Then STDOUT should contain: + """ + Success: Updated post 1. + """ + # Time of day, alongside the year/month/day filters already documented. # Two units at once exercises the combined path; all three of hour, minute # and second together is left out on purpose, because that path compares a