/** * Set up test */ protected function setUp() { parent::setUp(); static::bootKernel(); $this->repository = static::$kernel->getContainer()->get('open_orchestra_user.repository.group'); $this->siteRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.site'); }
/** * Set up test */ protected function setUp() { parent::setUp(); static::bootKernel(); $this->keywordRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.keyword'); $this->repository = static::$kernel->getContainer()->get('open_orchestra_media.repository.media'); }
/** * Set up test */ protected function setUp() { parent::setUp(); static::bootKernel(); $this->repository = static::$kernel->getContainer()->get('open_orchestra_model.repository.workflow_right'); $this->workflowFunctionRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.workflow_function'); $this->userRepository = static::$kernel->getContainer()->get('open_orchestra_user.repository.user'); }
/** * Set up test */ protected function setUp() { parent::setUp(); static::bootKernel(); $this->keywordRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.keyword'); $this->currentsiteManager = Phake::mock('OpenOrchestra\\BaseBundle\\Context\\CurrentSiteIdInterface'); Phake::when($this->currentsiteManager)->getCurrentSiteId()->thenReturn('2'); Phake::when($this->currentsiteManager)->getCurrentSiteDefaultLanguage()->thenReturn('fr'); $this->repository = static::$kernel->getContainer()->get('open_orchestra_model.repository.content'); }
/** * Set up the test */ public function setUp() { parent::setUp(); static::bootKernel(); $this->repository = static::$kernel->getContainer()->get('open_orchestra_model.repository.status'); }
/** * Set up test */ protected function setUp() { parent::setUp(); static::bootKernel(); }