/** * Executed after test is down. */ protected function tearDown() { oxDb::getDb()->closeConnection(); $this->setProtectedClassProperty(oxDb::getInstance(), 'db', $this->dbObjectBackup); oxDb::getDb()->closeConnection(); parent::tearDown(); }
/** * Clean-up oxarticles table + parent::tearDown() */ protected function tearDown() { $configFile = new ConfigFile(OX_BASE_PATH . 'config.inc.php'); Registry::set('oxConfigFile', $configFile); $this->cleanUpTable('oxarticles'); parent::tearDown(); }
/** * remove test data */ public function tearDown() { if (strpos($this->getName(), 'testGetTemplateBlocks') === 0) { oxDb::getDb()->Execute("delete from oxtplblocks where oxid like 'test_%'"); } parent::tearDown(); }
public function tearDown() { if (!$this->_blSkipCustomTearDown) { $oDbRestore = $this->_getDbRestore(); $oDbRestore->restoreTable('oxuser'); $oDbRestore->restoreTable('oxshops'); } parent::tearDown(); }
/** * Tear down the fixture. * * @return null */ protected function tearDown() { $myDB = oxDb::getDb(); $myDB->execute('delete from oxselectlist where oxid = "oxsellisttest" '); $myDB->execute('delete from oxobject2selectlist where oxselnid = "oxsellisttest" '); $this->cleanUpTable('oxcategories'); $this->cleanUpTable('oxarticles'); $this->cleanUpTable('oxobject2category'); parent::tearDown(); }
/** * Fixture tearDown. */ protected function tearDown() { $this->cleanUpTable('oxuser'); parent::tearDown(); }
/** * remove test data */ public function tearDown() { oxDb::getDb()->Execute("delete from oxtplblocks where oxid like '__test_%'"); parent::tearDown(); }
/** * Empty database table after every test */ public function tearDown() { $this->truncateTestTable(); $this->closeConnection(); gc_collect_cycles(); /** Restore the previous error handler function */ restore_error_handler(); parent::tearDown(); }