Skip to content

Commit 1102bc7

Browse files
committed
Flush dynamically scheduled core cron events in Behat tests
1 parent ebf62b9 commit 1102bc7

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

features/cron-event.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Feature: Manage WP Cron events
1414
Success: Executed a total of
1515
"""
1616

17+
# Running --all in WP >= 6.3 dynamically schedules 'wp_delete_temp_updater_backups' for now.
18+
When I try `wp cron event run --due-now`
19+
Then STDOUT should contain:
20+
"""
21+
Success: Executed a total of
22+
"""
23+
1724
When I run `wp cron event run --due-now`
1825
Then STDOUT should contain:
1926
"""

features/cron.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,13 @@ Feature: Manage WP-Cron events and schedules
333333
Success: Executed a total of
334334
"""
335335

336+
# Running --all in WP >= 6.3 dynamically schedules 'wp_delete_temp_updater_backups' for now.
337+
When I try `wp cron event run --due-now`
338+
Then STDOUT should contain:
339+
"""
340+
Success: Executed a total of
341+
"""
342+
336343
When I run `wp cron event run --due-now`
337344
Then STDOUT should contain:
338345
"""

0 commit comments

Comments
 (0)