tearDown() 보호된 메소드

protected tearDown ( )
 public function tearDown()
 {
     if (file_exists(base_path('bootstrap/cache/compiled.php'))) {
         unlink(base_path('bootstrap/cache/compiled.php'));
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     if (is_dir($this->indexPath)) {
         rmdir_recursive($this->indexPath);
     }
 }
예제 #3
0
 public function tearDown()
 {
     $user = \App\User::find(static::$idUser);
     if (null !== $user) {
         $user->delete();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     $user = \App\User::find(static::$idUser);
     $tasks = \App\Task::where('user_id', '=', $user->id);
     $tasks->forceDelete();
     if (null !== $user) {
         $user->delete();
     }
     parent::tearDown();
 }
예제 #5
0
 protected function tearDown()
 {
     Yii::$app->setModule('attachments', $this->_module);
     parent::tearDown();
 }
예제 #6
0
 /**
  * Test tear down
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->emptyDatabase();
 }
 public function tearDown()
 {
     parent::tearDown();
     \File::deleteDirectory($this->indexPath);
 }