示例#1
0
 /**
  * Executed after test is down.
  */
 protected function tearDown()
 {
     oxDb::getDb()->closeConnection();
     $this->setProtectedClassProperty(oxDb::getInstance(), 'db', $this->dbObjectBackup);
     oxDb::getDb()->closeConnection();
     parent::tearDown();
 }
示例#2
0
 /**
  * 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();
 }
示例#4
0
 public function tearDown()
 {
     if (!$this->_blSkipCustomTearDown) {
         $oDbRestore = $this->_getDbRestore();
         $oDbRestore->restoreTable('oxuser');
         $oDbRestore->restoreTable('oxshops');
     }
     parent::tearDown();
 }
示例#5
0
 /**
  * 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();
 }
示例#6
0
 /**
  * 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();
 }