/**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->folderEvent = static::$kernel->getContainer()->get('open_orchestra_media_admin.event.folder_event');
     $this->folder = new MediaFolder();
     $this->folderEvent->setFolder($this->folder);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $mediaRepository = static::$kernel->getContainer()->get('open_orchestra_media.repository.media');
     $this->medias = array($mediaRepository->findOneByName("Image 03"), $mediaRepository->findOneByName("Image 04"));
     $this->eventDispatcher = static::$kernel->getContainer()->get('event_dispatcher');
 }
 /**
  * Reset removing node after test
  */
 public function tearDown()
 {
     $nodes = $this->nodeRepository->findByNodeAndSite('fixture_page_contact', '2');
     $this->undeleteNodes($nodes);
     $this->republishNodes($nodes);
     static::$kernel->getContainer()->get('object_manager')->flush();
     parent::tearDown();
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->nodeRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.node');
     $this->currentSiteManager = Phake::mock('OpenOrchestra\\Backoffice\\Context\\ContextManager');
     Phake::when($this->currentSiteManager)->getCurrentSiteId()->thenReturn('2');
     Phake::when($this->currentSiteManager)->getCurrentSiteDefaultLanguage()->thenReturn('fr');
     static::$kernel->getContainer()->set('open_orchestra_backoffice.context_manager', $this->currentSiteManager);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->contentRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.content');
     $this->statusRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.status');
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->formFactory = static::$kernel->getContainer()->get('form.factory');
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->groupRepository = static::$kernel->getContainer()->get('open_orchestra_user.repository.group');
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->keywordRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.keyword');
     $this->formFactory = static::$kernel->getContainer()->get('form.factory');
 }
 /**
  * Set Up
  */
 public function setUp()
 {
     parent::setUp();
     $this->userRepository = $this->client->getContainer()->get('open_orchestra_user.repository.user');
 }