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. */