コード例 #1
0
 /**
  * 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');
 }
コード例 #2
0
 /**
  * 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');
 }
コード例 #3
0
 /**
  * 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');
 }
コード例 #5
0
 /**
  * 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();
 }