redis = Redis::connection(); $this->redis->flushall(); $this->prepareForTests(); } /** * Migrates the database and set the mailer to 'pretend'. * This will cause the tests to run quickly. * */ protected function prepareForTests() { Model::unguard(); DB::setDefaultConnection("model"); Artisan::call('doctrine:migrations:migrate', ["--connection" => 'config']); Artisan::call('doctrine:migrations:migrate', ["--connection" => 'model']); //Mail::pretend(true); $this->seed('TestSeeder'); } }