con = Propel::getConnection(PagePeer::DATABASE_NAME); $this->con->beginTransaction(); CmsDataPopulator::depopulate($this->con); CmsDataPopulator::populate($this->con); } /** * This is run after each unit test. It empties the database. */ protected function tearDown() { CmsDataPopulator::depopulate($this->con); $this->con->commit(); parent::tearDown(); } }