From f66122149a5d9b3a685f48f33302279b222ab309 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 7 Nov 2014 10:07:31 -0600 Subject: [PATCH] Bootstrap the application when testing. --- tests/TestCase.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 0d377197..37592f79 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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; } }