diff --git a/features/cron.feature b/features/cron.feature index 76b1ee0e81..253938dd0f 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -280,3 +280,27 @@ Feature: Manage WP-Cron events and schedules """ Executed a total of 0 cron event(s) """ + + Scenario: Don't trigger cron when ALTERNATE_WP_CRON is defined + Given a alternate-wp-cron.php file: + """ + add_wp_hook( 'muplugins_loaded', function() { + remove_action( 'init', 'wp_cron' ); + }); + } + // Get rid of warnings when converting single site to multisite if ( defined( 'WP_INSTALLING' ) && $this->is_multisite() ) { $values = array(