From 1102bc75de26a02614b657d45fa1c451426142f5 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 20 Jul 2026 12:36:45 +0200 Subject: [PATCH] Flush dynamically scheduled core cron events in Behat tests --- features/cron-event.feature | 7 +++++++ features/cron.feature | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/features/cron-event.feature b/features/cron-event.feature index 1bd4c90e..45884455 100644 --- a/features/cron-event.feature +++ b/features/cron-event.feature @@ -14,6 +14,13 @@ Feature: Manage WP Cron events Success: Executed a total of """ + # Running --all in WP >= 6.3 dynamically schedules 'wp_delete_temp_updater_backups' for now. + When I try `wp cron event run --due-now` + Then STDOUT should contain: + """ + Success: Executed a total of + """ + When I run `wp cron event run --due-now` Then STDOUT should contain: """ diff --git a/features/cron.feature b/features/cron.feature index fbe79cae..8c241fc7 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -333,6 +333,13 @@ Feature: Manage WP-Cron events and schedules Success: Executed a total of """ + # Running --all in WP >= 6.3 dynamically schedules 'wp_delete_temp_updater_backups' for now. + When I try `wp cron event run --due-now` + Then STDOUT should contain: + """ + Success: Executed a total of + """ + When I run `wp cron event run --due-now` Then STDOUT should contain: """