Skip to content

Commit dbb923a

Browse files
add verbose flag test
1 parent cacec6f commit dbb923a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

features/cron-event.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,18 @@ Feature: Manage WP Cron events
158158
"""
159159
Debug: Arguments:
160160
"""
161+
162+
Scenario: Confirm that cron event run with verbose flag lists both before and after
163+
When I run `wp cron event run wp_cli_test_event_1 --due-now --verbose`
164+
Then STDOUT should contain:
165+
"""
166+
Beginning execution of cron event 'wp_cli_test_event_1'
167+
"""
168+
And STDOUT should contain:
169+
"""
170+
Executed the cron event 'wp_cli_test_event_1'
171+
"""
172+
And STDOUT should contain:
173+
"""
174+
Executed a total of 1 cron event
175+
"""

0 commit comments

Comments
 (0)