Skip to content

Commit 16e276d

Browse files
Fix tests sensitive to SYMFONY_IDE env var
1 parent 869b949 commit 16e276d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Functional/ConfigDebugCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testParametersValuesAreFullyResolved(bool $debug)
141141
$this->assertStringContainsString('locale: en', $tester->getDisplay());
142142
$this->assertStringContainsString('secret: test', $tester->getDisplay());
143143
$this->assertStringContainsString('cookie_httponly: true', $tester->getDisplay());
144-
$this->assertStringContainsString('ide: '.$debug ? ($_ENV['SYMFONY_IDE'] ?? $_SERVER['SYMFONY_IDE'] ?? 'null') : 'null', $tester->getDisplay());
144+
$this->assertStringContainsString('ide: '.($debug ? ($_ENV['SYMFONY_IDE'] ?? $_SERVER['SYMFONY_IDE'] ?? 'null') : 'null'), $tester->getDisplay());
145145
}
146146

147147
/**

0 commit comments

Comments
 (0)