public function tearDown()
 {
     //Clean up test installation files
     exec('rm -rf ' . THINKUP_ROOT_PATH . 'webapp/test_installer' . '/*');
     // Delete test database created during installation process
     require THINKUP_WEBAPP_PATH . 'config.inc.php';
     //Override default CFG values
     $THINKUP_CFG['db_name'] = $this->test_database_name;
     $this->testdb_helper = new ThinkUpTestDatabaseHelper();
     $this->testdb_helper->drop($this->test_database_name);
     parent::tearDown();
 }
Example #2
0
 public function tearDown()
 {
     //Clean up test installation files
     exec('rm -rf webapp/test_installer/*');
     //Delete test database created during installation process
     require THINKUP_WEBAPP_PATH . 'config.inc.php';
     global $TEST_DATABASE;
     //Override default CFG values
     $THINKUP_CFG['db_name'] = $TEST_DATABASE;
     $this->db = new Database($THINKUP_CFG);
     $this->conn = $this->db->getConnection();
     $this->testdb_helper = new ThinkUpTestDatabaseHelper();
     $this->testdb_helper->drop($this->db);
     $this->db->closeConnection($this->conn);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->testdb_helper->drop($this->test_database_name);
     parent::tearDown();
 }
 public function tearDown() {
     $this->testdb_helper->drop($this->db);
     $this->db->closeConnection($this->conn);
     parent::tearDown();
 }