Пример #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);
 }
Пример #2
0
 /**
  * This is run before each unit test; it populates the database.
  */
 protected function setUp()
 {
     parent::setUp();
     CmsDataPopulator::depopulate();
     CmsDataPopulator::populate();
 }