Bootstrap the application when testing.
This commit is contained in:
parent
55965c73c5
commit
f66122149a
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue