tearDown() protected method

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);
     }
 }
Esempio n. 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();
 }
Esempio n. 5
0
 protected function tearDown()
 {
     Yii::$app->setModule('attachments', $this->_module);
     parent::tearDown();
 }
Esempio n. 6
0
 /**
  * Test tear down
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->emptyDatabase();
 }
 public function tearDown()
 {
     parent::tearDown();
     \File::deleteDirectory($this->indexPath);
 }