Skip to content

Commit 469c202

Browse files
Copilotswissspidy
andcommitted
Complete alternate cron test with wp cron test command
Co-authored-by: swissspidy <[email protected]>
1 parent 356aafa commit 469c202

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/cron.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,16 @@ Feature: Manage WP-Cron events and schedules
378378
https://example.com
379379
"""
380380

381+
When I run `wp cron test`
382+
Then STDOUT should contain:
383+
"""
384+
Success: WP-Cron spawning is working as expected.
385+
"""
386+
And STDERR should contain:
387+
"""
388+
Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous.
389+
"""
390+
381391
Scenario: Listing duplicated cron events
382392
When I run `wp cron event schedule wp_cli_test_event_1 '+1 hour 5 minutes' hourly`
383393
Then STDOUT should not be empty

0 commit comments

Comments
 (0)