diff --git a/laravel/bootstrap/app.php b/laravel/bootstrap/app.php index cbf76bb..309c964 100644 --- a/laravel/bootstrap/app.php +++ b/laravel/bootstrap/app.php @@ -1,9 +1,12 @@ make('router'); - -collect(glob(__DIR__.'/../routes/testbench-*.php')) - ->each(static function ($routeFile) use ($app, $router) { - require $routeFile; - }); +(new SyncTestbenchCachedRoutes)->bootstrap($app); return $app; diff --git a/src/TestCase.php b/src/TestCase.php index d439eac..c7b5fd8 100644 --- a/src/TestCase.php +++ b/src/TestCase.php @@ -214,7 +214,7 @@ protected function driver(): RemoteWebDriver } return RemoteWebDriver::create( - Env::get('DUSK_DRIVER_URL') ?? sprintf('http://localhost:%d', static::$chromeDriverPort), + Env::get('DUSK_DRIVER_URL') ?? \sprintf('http://localhost:%d', static::$chromeDriverPort), DesiredCapabilities::chrome()->setCapability( ChromeOptions::CAPABILITY, DuskOptions::getChromeOptions() @@ -274,7 +274,7 @@ public static function setUpBeforeClass(): void */ protected static function defineChromeDriver(): void { - static::startChromeDriver([sprintf('--port=%d', static::$chromeDriverPort)]); + static::startChromeDriver([\sprintf('--port=%d', static::$chromeDriverPort)]); } /**