Skip to content

Commit cda8c66

Browse files
committed
Undo code style change in $config_extra_php
This unnecessarily broke cron-command tests
1 parent fd13365 commit cda8c66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/testing.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: Test that WP-CLI loads.
1313
Given a WP install
1414
And the wp-config.php file should contain:
1515
"""
16-
if ( defined( 'DISABLE_WP_CRON' ) === false ) { define( 'DISABLE_WP_CRON', true ); }
16+
if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); }
1717
"""
1818
And a test_cron.php file:
1919
"""

src/Context/FeatureContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ public function install_wp( $subdir = '', $version = '' ): void {
15921592
$subdir = $this->replace_variables( $subdir );
15931593

15941594
// Disable WP Cron by default to avoid bogus HTTP requests in CLI context.
1595-
$config_extra_php = "if ( defined( 'DISABLE_WP_CRON' ) === false ) { define( 'DISABLE_WP_CRON', true ); }\n";
1595+
$config_extra_php = "if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); }\n";
15961596

15971597
if ( 'sqlite' !== self::$db_type ) {
15981598
$this->create_db();

0 commit comments

Comments
 (0)