From 38a107e9831dd7396b514a8573dbbd4a34a098a1 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 19 Dec 2025 09:49:00 +0100 Subject: [PATCH 1/3] Fix failing alternate cron test --- features/cron.feature | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/features/cron.feature b/features/cron.feature index e653960b..b135e1cc 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -365,6 +365,21 @@ Feature: Manage WP-Cron events and schedules require: - alternate-wp-cron.php """ + And a php.ini file: + """ + error_log = {RUN_DIR}/server.log + log_errors = on + """ + And I launch in the background `wp server --host=localhost --port=8080 --config=php.ini` + And a wp-content/mu-plugins/set_cron_site_url.php file: + """ + Date: Fri, 19 Dec 2025 10:04:24 +0100 Subject: [PATCH 2/3] Gherkin lint fix --- features/cron.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cron.feature b/features/cron.feature index b135e1cc..1d0c825e 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -398,7 +398,7 @@ Feature: Manage WP-Cron events and schedules """ Success: WP-Cron spawning is working as expected. """ - Then STDERR should contain: + And STDERR should contain: """ Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous. """ From b0414e9136ad17d45936974b6fbdfdcc9b08d955 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 19 Dec 2025 10:04:57 +0100 Subject: [PATCH 3/3] Replace home_url --- features/cron.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cron.feature b/features/cron.feature index 1d0c825e..946b3c5e 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -375,7 +375,7 @@ Feature: Manage WP-Cron events and schedules """