From 14a3c334edc0c28d06cdb128f9e07047c9c4008d Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 8 Aug 2023 13:26:52 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/TestCase.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/TestCase.php b/src/TestCase.php index fc7a85ed..f2503b5f 100644 --- a/src/TestCase.php +++ b/src/TestCase.php @@ -7,6 +7,7 @@ use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\RemoteWebDriver; use Illuminate\Foundation\Application; +use Laravel\Dusk\DuskServiceProvider; use Orchestra\Testbench\Dusk\Foundation\PackageManifest; use Orchestra\Testbench\Dusk\Options as DuskOptions; use Orchestra\Testbench\TestCase as Testbench; @@ -106,6 +107,19 @@ protected function setUp(): void $this->registerShutdownFunction(); } + /** + * Get application providers. + * + * @param \Illuminate\Foundation\Application $app + * @return array + */ + protected function getApplicationProviders($app) + { + return array_merge(parent::getApplicationProviders($app), [ + DuskServiceProvider::class, + ]); + } + /** * Setup parallel testing callback. */