From 09532b6e3622955d808da51c17984b44ef057efa Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Mon, 9 Feb 2015 21:51:26 +1100 Subject: [PATCH] Laravel 5 test case --- tests/TestCase.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 5a98838df..2d1893598 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,29 +1,23 @@ make('Illuminate\Contracts\Console\Kernel')->bootstrap(); - $testEnvironment = 'testing'; + $app['config']->set('cache.default', 'array'); - $result = require __DIR__.'/../bootstrap/start.php'; + $app->setLocale('en'); - /* - * Use the array driver during the unit testing - */ - Config::set('cache.driver', 'array'); - - App::setLocale('en'); - - return $result; + return $app; } }