Bootstrap the application when testing.

This commit is contained in:
Taylor Otwell 2014-11-07 10:07:31 -06:00
parent 55965c73c5
commit f66122149a
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}
}