From 356aafaeecbbcc2816e2af013c594d49535331f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 1 Nov 2025 19:58:44 +0000 Subject: [PATCH 1/3] Initial plan From 469c202e8cecd033278eff0d5f10d2941e583bda Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 1 Nov 2025 20:13:13 +0000 Subject: [PATCH 2/3] Complete alternate cron test with wp cron test command Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> --- features/cron.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/features/cron.feature b/features/cron.feature index e69e2e6f..3517e7ea 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -378,6 +378,16 @@ Feature: Manage WP-Cron events and schedules https://example.com """ + When I run `wp cron test` + Then STDOUT should contain: + """ + Success: WP-Cron spawning is working as expected. + """ + And STDERR should contain: + """ + Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous. + """ + Scenario: Listing duplicated cron events When I run `wp cron event schedule wp_cli_test_event_1 '+1 hour 5 minutes' hourly` Then STDOUT should not be empty From 1b2b055433c3198b75d3b1fa49191f04de41ae01 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 1 Nov 2025 20:26:53 +0000 Subject: [PATCH 3/3] Fix alternate cron test to expect 403 error Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> --- features/cron.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/cron.feature b/features/cron.feature index 3517e7ea..e653960b 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -378,14 +378,14 @@ Feature: Manage WP-Cron events and schedules https://example.com """ - When I run `wp cron test` - Then STDOUT should contain: + When I try `wp cron test` + Then STDERR should contain: """ - Success: WP-Cron spawning is working as expected. + Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous. """ And STDERR should contain: """ - Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous. + Error: WP-Cron spawn returned HTTP status code: 403 Forbidden """ Scenario: Listing duplicated cron events