setUp() public method

Setup the test environment.
public setUp ( ) : void
return void
コード例 #1
0
ファイル: TestCase.php プロジェクト: spira/api-core
 /**
  * Setup the test environment.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->bootTraits();
     DB::connection()->beginTransaction();
     //start a new transaction
 }
コード例 #2
0
 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');
 }