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