protected function tearDown()
 {
     parent::tearDown();
     $pluginSettingsDao = DAORegistry::getDAO('PluginSettingsDAO');
     /* @var $pluginSettingsDao PluginSettingsDAO */
     $pluginSettingsDao->_getCache(0, 'luceneplugin')->flush();
 }
 /**
  * @see PHPUnit_Framework_TestCase::tearDown()
  */
 protected function tearDown()
 {
     // Restart the session so that we get access
     // to Selenium to clean up our configuration.
     $this->start();
     // Explicitly stop Selenium otherwise our session
     // will not be freed for re-use.
     $this->stop();
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->deleteTmpDir('StandardFormLogin');
 }
 /**
  * @see PHPUnit_Framework_TestCase::tearDown()
  */
 protected function tearDown()
 {
     // Restart the session so that we get access
     // to Selenium to clean up our configuration.
     $this->start();
     // Reset to standard settings. We have to do this
     // through the UI to correctly reset caches, too.
     $this->resetDoiSettings();
     // Explicitly stop Selenium otherwise our session
     // will not be freed for re-use.
     $this->stop();
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->deleteTmpDir('ORM');
 }
Exemplo n.º 6
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->deleteTmpDir('SessionTest');
 }
Exemplo n.º 7
0
 /**
  * tearDown implementation, setting back switched modules etc
  */
 function tearDown()
 {
     if ($this->_modules != $this->_originalModules) {
         $form_state['values'] = array('status' => $this->_originalModules, 'op' => t('Save configuration'));
         drupal_execute('system_modules', $form_state);
         //rebuilding all caches
         drupal_rebuild_theme_registry();
         node_types_rebuild();
         menu_rebuild();
         cache_clear_all('schema', 'cache');
         module_rebuild_cache();
         $this->_modules = $this->_originalModules;
     }
     foreach ($this->_cleanupVariables as $name => $value) {
         if (is_null($value)) {
             variable_del($name);
         } else {
             variable_set($name, $value);
         }
     }
     $this->_cleanupVariables = array();
     //delete nodes
     foreach ($this->_cleanupNodes as $nid) {
         node_delete($nid);
     }
     $this->_cleanupNodes = array();
     //delete roles
     while (sizeof($this->_cleanupRoles) > 0) {
         $rid = array_pop($this->_cleanupRoles);
         db_query("DELETE FROM {role} WHERE rid = %d", $rid);
         db_query("DELETE FROM {permission} WHERE rid = %d", $rid);
     }
     //delete users and their content
     while (sizeof($this->_cleanupUsers) > 0) {
         $uid = array_pop($this->_cleanupUsers);
         // cleanup nodes this user created
         $result = db_query("SELECT nid FROM {node} WHERE uid = %d", $uid);
         while ($node = db_fetch_array($result)) {
             node_delete($node['nid']);
         }
         user_delete(array(), $uid);
     }
     //delete content types
     foreach ($this->_cleanupContentTypes as $type) {
         node_type_delete($type);
     }
     $this->_cleanupContentTypes = array();
     //Output drupal warnings and messages into assert messages
     $drupal_msgs = drupal_get_messages();
     foreach ($drupal_msgs as $type => $msgs) {
         foreach ($msgs as $msg) {
             $this->assertTrue(TRUE, "{$type}: {$msg}");
         }
     }
     parent::tearDown();
 }
Exemplo n.º 8
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->deleteTmpDir('Serializer');
 }
Exemplo n.º 9
0
 /**
  * Tears down the fixture.
  */
 public function tearDown()
 {
     parent::tearDown();
 }
Exemplo n.º 10
0
 /**
  * tearDown implementation, setting back switched modules etc
  */
 function tearDown()
 {
     foreach ($this->_cleanupModules as $name => $status) {
         db_query("UPDATE {system} SET status = %d WHERE name = '%s' AND type = 'module'", $status, $name);
     }
     $this->_cleanupModules = array();
     // Refresh the modules list
     module_list(TRUE, FALSE);
     menu_rebuild();
     foreach ($this->_cleanupVariables as $name => $value) {
         if (is_null($value)) {
             variable_del($name);
         } else {
             variable_set($name, $value);
         }
     }
     $this->_cleanupVariables = array();
     while (sizeof($this->_cleanupRoles) > 0) {
         $rid = array_pop($this->_cleanupRoles);
         db_query("DELETE FROM {role} WHERE rid = %d", $rid);
         db_query("DELETE FROM {permission} WHERE rid = %d", $rid);
     }
     while (sizeof($this->_cleanupUsers) > 0) {
         $uid = array_pop($this->_cleanupUsers);
         // cleanup nodes this user created
         $result = db_query("SELECT nid FROM {node} WHERE uid = %d", $uid);
         while ($node = db_fetch_array($result)) {
             node_delete($node['nid']);
         }
         user_delete(array(), $uid);
     }
     parent::tearDown();
 }
Exemplo n.º 11
0
 public function tearDown()
 {
     parent::tearDown();
     set_include_path($this->old_include_path);
 }