/** * Create a clean copy of the ThinkTank database structure */ function setUp() { global $THINKTANK_CFG; global $TEST_DATABASE; //Override default CFG values $THINKTANK_CFG['db_name'] = $TEST_DATABASE; $this->db = new Database($THINKTANK_CFG); $this->conn = $this->db->getConnection(); $this->testdb_helper = new ThinkTankTestDatabaseHelper(); $this->testdb_helper->create($this->db); parent::setUp(); }
function setUp() { parent::setUp(); }
function setUp() { parent::setUp(); $config = Config::getInstance(); $config->setValue('debug', true); }