Bootstrap the application when testing.
This commit is contained in:
@@ -9,7 +9,11 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase {
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__.'/../bootstrap/app.php';
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make('Illuminate\Contracts\Http\Kernel')->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user