prepareForTests(); } static public function setupBeforeClass() { f::loadFactories(__DIR__ . '/factories'); } public function tearDown() { //m::close(); } /** * Migrates the database and set the mailer to 'pretend'. * This will cause the tests to run quickly. * */ private function prepareForTests() { Artisan::call('migrate'); Mail::pretend(true); } }