public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     if (!is_dir('tmp/geoname')) {
         mkdir('tmp/geoname', 0755, true);
     }
     $this->geoname = $this->sm->get('geoname')->setEm($this->em)->setTmpDir('tmp/geoname');
 }
 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();
 }
 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();
 }
 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();
 }
Exemple #5
0
 public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     $this->cron = $this->sm->get('cron')->setEm($this->em);
 }
 public function setUp()
 {
     $this->setBootstrap(__DIR__ . '/../../../../../bootstrap.php')->setEmAlias('doctrine.entitymanager.orm_default')->setTmpDir('tmp');
     parent::setUp();
     $this->exporter = $this->sm->get('vcard-exporter')->setEm($this->em)->setDateTimeParser($this->sm->get('Yalesov\\DateTimeParser\\Parser'));
 }
Exemple #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');
 }