From 22c87f3ef9a75c9a9365ca0466e9fe8092597533 Mon Sep 17 00:00:00 2001 From: Alex Rock Ancelet Date: Sat, 22 Feb 2020 20:31:17 +0100 Subject: [PATCH] Fix an issue when one uses only the PantherTestCaseTrait --- src/PantherTestCaseTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PantherTestCaseTrait.php b/src/PantherTestCaseTrait.php index 986817a3..c3f8f926 100644 --- a/src/PantherTestCaseTrait.php +++ b/src/PantherTestCaseTrait.php @@ -80,7 +80,7 @@ trait PantherTestCaseTrait 'router' => '', 'external_base_uri' => null, 'readinessPath' => '', - 'browser' => self::CHROME, + 'browser' => PantherTestCase::CHROME, ]; public static function tearDownAfterClass(): void @@ -167,7 +167,7 @@ protected static function createPantherClient(array $options = [], array $kernel self::startWebServer($options); - if (self::CHROME === ($options['browser'] ?? self::$defaultOptions['browser'] ?? self::CHROME)) { + if (PantherTestCase::CHROME === ($options['browser'] ?? self::$defaultOptions['browser'] ?? PantherTestCase::CHROME)) { self::$pantherClients[0] = self::$pantherClient = Client::createChromeClient(null, null, [], self::$baseUri); } else { self::$pantherClients[0] = self::$pantherClient = Client::createFirefoxClient(null, null, [], self::$baseUri);