Exemplo n.º 1
0
 /**
  * This is run before each unit test; it populates the database.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->con = Propel::getConnection(PagePeer::DATABASE_NAME);
     $this->con->beginTransaction();
     CmsDataPopulator::depopulate($this->con);
     CmsDataPopulator::populate($this->con);
 }
Exemplo n.º 2
0
 /**
  * This is run before each unit test; it populates the database.
  */
 protected function setUp()
 {
     parent::setUp();
     CmsDataPopulator::depopulate();
     CmsDataPopulator::populate();
 }