public function setUp()
 {
     parent::resetMongo();
     sfConfig::set('sf_environment', 'test');
     Doctrine::loadData(dirname(__FILE__) . '/fixtures');
     sfConfig::set('sf_environment', 'dev');
     $this->from = date('Y-m-d', strtotime("today"));
     $this->to = date('Y-m-d', strtotime("tomorrow"));
 }
Exemple #2
0
 public function testUpdateOwnedIdentities()
 {
     parent::resetMongo();
     Doctrine::loadData(dirname(__FILE__) . '/fixtures');
     $lUserHugo = UserTable::getByIdentifier('hugo');
     $lUserHugo->updateOwnedIdentities(array("1", "2", "34"));
     $lRelation = $lUserHugo->retrieveUserRelations();
     $this->assertTrue(in_array("34", $lRelation->getOwnedOi()));
 }
 public static function setUpBeforeClass()
 {
     parent::resetMongo();
     Doctrine::loadData(dirname(__FILE__) . '/fixtures');
 }