/**
  * 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();
 }
Beispiel #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();
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->database = \oxDb::getDb();
 }
Beispiel #7
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();
 }
 /**
  * Tear down after all tests are done
  */
 public static function tearDownAfterClass()
 {
     self::removeDatabaseTable();
     parent::tearDownAfterClass();
 }