Example #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();
 }
Example #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();
 }
Example #4
0
 public function tearDown()
 {
     if (!$this->_blSkipCustomTearDown) {
         $oDbRestore = $this->_getDbRestore();
         $oDbRestore->restoreTable('oxuser');
         $oDbRestore->restoreTable('oxshops');
     }
     parent::tearDown();
 }
Example #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();
 }
Example #6
0
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->database = \oxDb::getDb();
 }
Example #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();
 }