Skip to content

Commit 77834cc

Browse files
authored
Merge pull request #303 from Pierstoval/fix-trait
Fix an issue when one uses only the PantherTestCaseTrait
2 parents 2313a4e + fea737d commit 77834cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PantherTestCaseTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ trait PantherTestCaseTrait
8080
'router' => '',
8181
'external_base_uri' => null,
8282
'readinessPath' => '',
83-
'browser' => self::CHROME,
83+
'browser' => PantherTestCase::CHROME,
8484
];
8585

8686
public static function tearDownAfterClass(): void
@@ -167,7 +167,7 @@ protected static function createPantherClient(array $options = [], array $kernel
167167

168168
self::startWebServer($options);
169169

170-
if (self::CHROME === ($options['browser'] ?? self::$defaultOptions['browser'] ?? self::CHROME)) {
170+
if (PantherTestCase::CHROME === ($options['browser'] ?? self::$defaultOptions['browser'] ?? PantherTestCase::CHROME)) {
171171
self::$pantherClients[0] = self::$pantherClient = Client::createChromeClient(null, null, [], self::$baseUri);
172172
} else {
173173
self::$pantherClients[0] = self::$pantherClient = Client::createFirefoxClient(null, null, [], self::$baseUri);

0 commit comments

Comments
 (0)