Browse Source

Bootstrap the application when testing.

Taylor Otwell 9 years ago
parent
commit
f66122149a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tests/TestCase.php

+ 5 - 1
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;
 	}
 
 }