Skip to content

Commit

Permalink
Bootstrap the application when testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 7, 2014
1 parent 55965c7 commit f661221
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

0 comments on commit f661221

Please sign in to comment.