Skip to content

Commit f7471d4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)