From fde374e003d325129fcc4e2580c5c72f2e2d482f Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 19 Mar 2026 10:45:00 +0100 Subject: [PATCH] Harden tests Follow-up to changes to the test suite in wp-cli/wp-cli-tests#274 --- features/cron.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cron.feature b/features/cron.feature index 58eabf48..30c1d004 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -2,7 +2,7 @@ Feature: Manage WP-Cron events and schedules Background: Given a WP install - And I run `wp config set DISABLE_WP_CRON false --raw --type=constant --anchor="if ( ! defined( 'DISABLE_WP_CRON' ) )"` + And I run `wp config set DISABLE_WP_CRON false --raw --type=constant --anchor="/* Add any custom values between this line and the \"stop editing\" line. */" --placement=after` Scenario: Scheduling and then deleting an event When I run `wp cron event schedule wp_cli_test_event_1 '+1 hour 5 minutes' --0=banana`