Ejemplo n.º 1
0
 public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     $this->repo = $this->em->getRepository('Yalesov\\Geoname\\Entity\\Language');
     $this->foo = new Entity\Language();
     $this->em->persist($this->foo);
     $this->foo->setIso3('foo')->setIso2('fo')->setIso1('f');
     $this->em->flush();
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     $this->repo = $this->em->getRepository('Yalesov\\Geoname\\Entity\\Feature');
     $this->fooParent = new Entity\Feature();
     $this->em->persist($this->fooParent);
     $this->fooParent->setCode('F');
     $this->foo = new Entity\Feature();
     $this->em->persist($this->foo);
     $this->foo->setCode('FOO')->setParent($this->fooParent);
     $this->barParent = new Entity\Feature();
     $this->em->persist($this->barParent);
     $this->barParent->setCode('B');
     $this->bar = new Entity\Feature();
     $this->em->persist($this->bar);
     $this->bar->setCode('BAR')->setParent($this->barParent);
     $this->em->flush();
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     $this->repo = $this->em->getRepository('Yalesov\\Geoname\\Entity\\Place');
     $this->admin = new Entity\Feature();
     $this->em->persist($this->admin);
     $this->admin->setCode('A');
     $this->admin1 = new Entity\Feature();
     $this->em->persist($this->admin1);
     $this->admin1->setCode('ADM1')->setParent($this->admin);
     $this->admin2 = new Entity\Feature();
     $this->em->persist($this->admin2);
     $this->admin2->setCode('ADM2')->setParent($this->admin);
     $this->foo = new Entity\Place();
     $this->foo->setId(1)->setCountryCode('DE')->setAdmin1Code('01')->setAdmin2Code('00')->setAdmin3Code('03')->setAdmin4Code('')->setFeature($this->admin1);
     $this->em->persist($this->foo);
     $this->bar = new Entity\Place();
     $this->bar->setId(2)->setCountryCode('BA')->setFeature($this->admin2);
     $this->em->persist($this->bar);
     $this->em->flush();
 }
Ejemplo n.º 4
0
 public function tearDown()
 {
     Registry::destroy();
     unset($this->cron);
     parent::tearDown();
 }
Ejemplo n.º 5
0
 public function tearDown()
 {
     $this->exporter = null;
     parent::tearDown();
 }
Ejemplo n.º 6
0
 public function tearDown()
 {
     unset($this->geoname);
     parent::tearDown();
 }
Ejemplo n.º 7
0
 public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     $this->repo = $this->em->getRepository('Yalesov\\Cron\\Entity\\Job');
 }