Skip to content

Commit dd995f9

Browse files
authored
Merge pull request #119 from wp-cli/copilot/fix-incomplete-alternate-cron-test
2 parents 4bfde16 + 1b2b055 commit dd995f9

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 try `wp cron test`
382+
Then STDERR should contain:
383+
"""
384+
Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous.
385+
"""
386+
And STDERR should contain:
387+
"""
388+
Error: WP-Cron spawn returned HTTP status code: 403 Forbidden
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)