diff --git a/skeleton/bootstrap.php b/skeleton/bootstrap.php index afc9930..90a1eb8 100644 --- a/skeleton/bootstrap.php +++ b/skeleton/bootstrap.php @@ -81,9 +81,9 @@ $app->register(Laravel\Lumen\Providers\FoundationServiceProvider::class); $app->register(Dingo\Api\Provider\LumenServiceProvider::class); // $app->register(Tymon\JWTAuth\Providers\LumenServiceProvider::class); -// $app->register(App\Lumen\Providers\AppServiceProvider::class); -// $app->register(App\Lumen\Providers\AuthServiceProvider::class); -// $app->register(App\Lumen\Providers\EventServiceProvider::class); +$app->register(App\Lumen\Providers\AppServiceProvider::class); +$app->register(App\Lumen\Providers\AuthServiceProvider::class); +$app->register(App\Lumen\Providers\EventServiceProvider::class); /* |-------------------------------------------------------------------------- @@ -96,7 +96,7 @@ | */ -$app->get('/', function () use ($app) { +$app->router->get('/', function () use ($app) { return $app->version(); }); diff --git a/skeleton/config/api.php b/skeleton/config/api.php index 3817035..84399eb 100644 --- a/skeleton/config/api.php +++ b/skeleton/config/api.php @@ -193,7 +193,7 @@ | */ - 'transformer' => env('API_TRANSFORMER', Dingo\Api\Transformer\Adapter\Fractal::class), + 'transformer' => env('API_TRANSFORMER', Dingo\Api\Transformer\Adapter\Illuminate::class), /* |-------------------------------------------------------------------------- diff --git a/src/Testing/Concerns/Testing.php b/src/Testing/Concerns/Testing.php index e246d8d..b437f93 100644 --- a/src/Testing/Concerns/Testing.php +++ b/src/Testing/Concerns/Testing.php @@ -47,8 +47,6 @@ final protected function setUpTheTestEnvironment() { if (! $this->app) { $this->refreshApplication(); - - $this->app->make(ConsoleKernel::class); } $this->setUpTraits(); diff --git a/src/Testing/TestCase.php b/src/Testing/TestCase.php index cc9cdbf..055acde 100644 --- a/src/Testing/TestCase.php +++ b/src/Testing/TestCase.php @@ -43,6 +43,8 @@ protected function refreshApplication() $this->app = $this->createApplication(); + $this->app->make(ConsoleKernel::class); + $url = $this->app->make('config')->get('app.url', 'http://localhost'); $this->app->make('url')->forceRootUrl($url);