Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion features/post.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down