/** * Setup the test environment. * * @return void */ public function setUp() { parent::setUp(); $this->bootTraits(); DB::connection()->beginTransaction(); //start a new transaction }
public function setUp() { parent::setUp(); mkdir(__DIR__ . '/../resources/lang/', 0777, true); mkdir(__DIR__ . '/../resources/views/lazy-strings/', 0777, true); mkdir(__DIR__ . '/../storage/app/', 0777, true); mkdir(__DIR__ . '/../storage/framework/cache/', 0777, true); mkdir(__DIR__ . '/../storage/framework/sessions/', 0777, true); mkdir(__DIR__ . '/../storage/framework/views/', 0777, true); copy(__DIR__ . '/../views/lazy.blade.php', __DIR__ . '/../resources/views/lazy-strings/lazy.blade.php'); }