From 32aed35f7ed98b87e6b49586d8e7ba68f0630ad0 Mon Sep 17 00:00:00 2001 From: Robin Straub Date: Tue, 23 Jul 2024 20:25:22 +0200 Subject: [PATCH 1/2] fix: DuskTestCase driver function fails to read the driver environment variable --- stubs/DuskTestCase.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/DuskTestCase.stub b/stubs/DuskTestCase.stub index e144eb0c6..4ab27d72c 100644 --- a/stubs/DuskTestCase.stub +++ b/stubs/DuskTestCase.stub @@ -39,7 +39,7 @@ abstract class DuskTestCase extends BaseTestCase })->all()); return RemoteWebDriver::create( - $_ENV['DUSK_DRIVER_URL'] ?? 'http://localhost:9515', + env('DUSK_DRIVER_URL') ?? 'http://localhost:9515', DesiredCapabilities::chrome()->setCapability( ChromeOptions::CAPABILITY, $options ) From 2921bf37e758cf43ebbc3f4c059548f49a1d8299 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 23 Jul 2024 14:32:04 -0500 Subject: [PATCH 2/2] Update DuskTestCase.stub --- stubs/DuskTestCase.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/DuskTestCase.stub b/stubs/DuskTestCase.stub index 4ab27d72c..9e6d70587 100644 --- a/stubs/DuskTestCase.stub +++ b/stubs/DuskTestCase.stub @@ -39,7 +39,7 @@ abstract class DuskTestCase extends BaseTestCase })->all()); return RemoteWebDriver::create( - env('DUSK_DRIVER_URL') ?? 'http://localhost:9515', + $_ENV['DUSK_DRIVER_URL'] ?? env('DUSK_DRIVER_URL') ?? 'http://localhost:9515', DesiredCapabilities::chrome()->setCapability( ChromeOptions::CAPABILITY, $options )