Ejemplo n.º 1
0
 public function tearDown()
 {
     foreach ($this->localTestFiles as $file) {
         unlink($this->folder . '/' . $file);
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     if ($this->createsModels) {
         $this->deleteNewModels();
     }
     parent::tearDown();
 }
Ejemplo n.º 3
0
 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     CakeSession::clear();
     CakeSession::destroy();
     ClassRegistry::flush();
 }
 protected function tearDown()
 {
     if (!is_null($this->config)) {
         Zend_Registry::set('Zend_Config', $this->config);
     }
     // Cleanup of Log File
     $config = Zend_Registry::get('Zend_Config');
     $filename = $config->workspacePath . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR . 'opus_consistency-check.log';
     if (file_exists($filename)) {
         unlink($filename);
     }
     // Cleanup of Lock File
     if (file_exists($filename . '.lock')) {
         unlink($filename . '.lock');
     }
     // Cleanup of Jobs Table
     $jobs = Opus_Job::getByLabels(array(Opus_Job_Worker_ConsistencyCheck::LABEL));
     foreach ($jobs as $job) {
         try {
             $job->delete();
         } catch (Exception $e) {
             // ignore
         }
     }
     parent::tearDown();
 }
Ejemplo n.º 5
0
 function tearDown()
 {
     Cache::clear(false, 'default');
     ConnectionManager::drop('cacher');
     unset($this->CacheData);
     parent::tearDown();
 }
Ejemplo n.º 6
0
 public function tearDown()
 {
     parent::tearDown();
     $testRole = new Opus_UserRole($this->roleId);
     $testRole->delete();
     $userAccount = new Opus_Account($this->userId);
     $userAccount->delete();
 }
 public function tearDown()
 {
     $collectionRole = Opus_CollectionRole::fetchByName('NewTestColRoleName');
     if (!is_null($collectionRole)) {
         $collectionRole->delete();
     }
     parent::tearDown();
 }
Ejemplo n.º 8
0
 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     if (CakeSession::started()) {
         CakeSession::clear();
         CakeSession::destroy();
     }
     ClassRegistry::flush();
 }
Ejemplo n.º 9
0
 protected function tearDown()
 {
     $testJobs = Opus_Job::getAll($this->jobIds);
     foreach ($testJobs as $job) {
         $job->delete();
     }
     Zend_Registry::set('Zend_Config', $this->__configBackup);
     parent::tearDown();
 }
Ejemplo n.º 10
0
 public function tearDown()
 {
     parent::tearDown();
     foreach ($this->contentFiles as $contentFile) {
         unlink(APPLICATION_PATH . DIRECTORY_SEPARATOR . $this->contentBasepath . DIRECTORY_SEPARATOR . $contentFile);
     }
     if (is_file(APPLICATION_PATH . DIRECTORY_SEPARATOR . $this->tmxTarget)) {
         unlink(APPLICATION_PATH . DIRECTORY_SEPARATOR . $this->tmxTarget);
     }
 }
 public function tearDown()
 {
     if (!is_null($this->nonEmptyCollectionRole) && !is_null($this->nonEmptyCollectionRole->getId())) {
         $this->nonEmptyCollectionRole->delete();
     }
     if (!is_null($this->emptyCollectionRole) && !is_null($this->emptyCollectionRole->getId())) {
         $this->emptyCollectionRole->delete();
     }
     parent::tearDown();
 }
Ejemplo n.º 12
0
 public function tearDown()
 {
     $this->logoutUser();
     $this->restoreSecuritySetting();
     $user = Opus_Account::fetchAccountByLogin($this->userName);
     $user->delete();
     $userRole = Opus_UserRole::fetchByName($this->roleName);
     $userRole->delete();
     parent::tearDown();
 }
Ejemplo n.º 13
0
 public function tearDown()
 {
     reset($this->inserts);
     foreach ($this->inserts as $id => $insert) {
         if (!$insert['persistence']) {
             $this->projectMapper->delete($insert['p']);
         }
     }
     parent::tearDown();
 }
Ejemplo n.º 14
0
 public function tearDown()
 {
     $collectionRole = new Opus_CollectionRole($this->collectionRoleId);
     $collectionRole->delete();
     if (!is_null($this->moveTestColId)) {
         $collectionRole = new Opus_CollectionRole($this->moveTestColId);
         $collectionRole->delete();
     }
     parent::tearDown();
 }
Ejemplo n.º 15
0
 public function tearDown()
 {
     $projectsAfterTests = $this->projectMapper->getAllIds();
     foreach ($projectsAfterTests as $id) {
         if (!in_array($id, $this->projectsBeforeTests)) {
             $project = $this->projectMapper->findById($id);
             $this->projectMapper->delete($project);
         }
     }
     parent::tearDown();
 }
Ejemplo n.º 16
0
 public function tearDown()
 {
     $licences = Opus_Licence::getAll();
     if (count($this->licenceIds) < count($licences)) {
         foreach ($licences as $licence) {
             if (!in_array($licence->getId(), $this->licenceIds)) {
                 $licence->delete();
             }
         }
     }
     parent::tearDown();
 }
Ejemplo n.º 17
0
 public function tearDown()
 {
     if (!empty($this->jobIds)) {
         foreach ($this->jobIds as $jobId) {
             try {
                 $job = new Opus_Job($jobId);
                 $job->delete();
             } catch (Opus_Model_NotFoundException $e) {
             }
         }
     }
     parent::tearDown();
 }
Ejemplo n.º 18
0
 /**
  * @access protected
  */
 protected function tearDown()
 {
     session_write_close();
     parent::tearDown();
 }
Ejemplo n.º 19
0
 public function tearDown()
 {
     parent::tearDown();
     $this->user = null;
 }
Ejemplo n.º 20
0
 public function tearDown()
 {
     CakeSession::delete('Auth.User');
     parent::tearDown();
 }
Ejemplo n.º 21
0
 public function tearDown()
 {
     $this->logoutUser();
     $this->restoreSecuritySetting();
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     Configure::write('UniLogin.testProvider', $this->_restore);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     $_SERVER['REQUEST_URI'] = $this->stored_request_uri;
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Person);
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->controller);
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Users);
     parent::tearDown();
 }
 /**
  * tear Down
  */
 public function tearDown()
 {
     $this->_user->delete();
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     $this->logout();
     Configure::write('Config.language', null);
     parent::tearDown();
 }
Ejemplo n.º 29
0
 /**
  * Remove invironment
  */
 public function tearDown()
 {
     $this->_userTable->delete($this->_userTable->quoteInto('login=?', $this->_fixture['guest']['login']));
     $this->_userTable->delete($this->_userTable->quoteInto('login=?', $this->_fixture['blocked']['login']));
     $this->_userTable->delete($this->_userTable->quoteInto('login=?', $this->_fixture['removed']['login']));
     $this->_userTable->delete($this->_userTable->quoteInto('login=?', $this->_fixture['admin']['login']));
     parent::tearDown();
 }
Ejemplo n.º 30
0
 /**
  * Remove environtment
  */
 protected function tearDown()
 {
     $user = $this->_userTable->getByLogin($this->_fixture['login']);
     $user->delete();
     parent::tearDown();
 }