diff --git a/src/alley/wp/alleyvate/features/class-enable-jetpack-safe-mode.php b/src/alley/wp/alleyvate/features/class-enable-jetpack-safe-mode.php index e621aeb5..0fcb6fff 100644 --- a/src/alley/wp/alleyvate/features/class-enable-jetpack-safe-mode.php +++ b/src/alley/wp/alleyvate/features/class-enable-jetpack-safe-mode.php @@ -24,7 +24,7 @@ final class Enable_Jetpack_Safe_Mode implements Feature { public function boot(): void { if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) && - $_ENV['PANTHEON_ENVIRONMENT'] !== 'live' + 'live' !== $_ENV['PANTHEON_ENVIRONMENT'] ) { add_filter( 'jetpack_is_development_site', '__return_true' ); } diff --git a/tests/alley/wp/alleyvate/features/test-enable-jetpack-safe-mode.php b/tests/alley/wp/alleyvate/features/test-enable-jetpack-safe-mode.php index f68d3ea3..c065dc1b 100644 --- a/tests/alley/wp/alleyvate/features/test-enable-jetpack-safe-mode.php +++ b/tests/alley/wp/alleyvate/features/test-enable-jetpack-safe-mode.php @@ -41,10 +41,10 @@ protected function setUp(): void { * Test that the feature enabled Jetpack safe mode. */ public function test_enable_jetpack_safe_mode(): void { - $this->assertFalse( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should not be true prior to boot.' ); + $this->assertFalse( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should not be true prior to boot.' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound $this->setEnvironment( 'test' ); $this->feature->boot(); - $this->assertTrue( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should be true after boot.' ); + $this->assertTrue( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should be true after boot.' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound } /**