/**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->keyword = Phake::mock('OpenOrchestra\\ModelBundle\\Document\\Keyword');
     $this->keywordEvent = Phake::mock('OpenOrchestra\\ModelInterface\\Event\\KeywordEvent');
     Phake::when($this->keywordEvent)->getKeyword()->thenReturn($this->keyword);
     $this->subscriber = new LogKeywordSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->status = Phake::mock('OpenOrchestra\\ModelInterface\\Model\\StatusInterface');
     $this->statusEvent = Phake::mock('OpenOrchestra\\ModelInterface\\Event\\StatusEvent');
     Phake::when($this->statusEvent)->getStatus()->thenReturn($this->status);
     $this->subscriber = new LogStatusSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->group = Phake::mock('OpenOrchestra\\Backoffice\\Model\\GroupInterface');
     $this->groupEvent = Phake::mock('OpenOrchestra\\UserBundle\\Event\\GroupEvent');
     Phake::when($this->groupEvent)->getGroup()->thenReturn($this->group);
     $this->subscriber = new LogGroupSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->site = Phake::mock('OpenOrchestra\\ModelBundle\\Document\\Site');
     $this->siteEvent = Phake::mock('OpenOrchestra\\ModelInterface\\Event\\SiteEvent');
     Phake::when($this->siteEvent)->getSite()->thenReturn($this->site);
     $this->subscriber = new LogSiteSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->content = Phake::mock('OpenOrchestra\\ModelBundle\\Document\\Content');
     $this->contentEvent = Phake::mock('OpenOrchestra\\ModelInterface\\Event\\ContentEvent');
     Phake::when($this->contentEvent)->getContent()->thenReturn($this->content);
     $this->subscriber = new LogContentSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->node = Phake::mock('OpenOrchestra\\ModelBundle\\Document\\Node');
     $this->nodeEvent = Phake::mock('OpenOrchestra\\ModelInterface\\Event\\NodeEvent');
     Phake::when($this->nodeEvent)->getNode()->thenReturn($this->node);
     $this->context = array('node_id' => $this->node->getNodeId(), 'node_version' => $this->node->getVersion(), 'node_language' => $this->node->getLanguage(), 'node_name' => $this->node->getName());
     $this->subscriber = new LogNodeSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->user = Phake::mock('OpenOrchestra\\UserBundle\\Document\\User');
     $this->userEvent = Phake::mock('OpenOrchestra\\UserBundle\\Event\\UserEvent');
     Phake::when($this->userEvent)->getUser()->thenReturn($this->user);
     $this->context = array('user_name' => $this->user->getUsername());
     $this->subscriber = new LogUserSubscriber($this->logger);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->context = Phake::mock('OpenOrchestra\\Backoffice\\Context\\ContextManager');
     Phake::when($this->context)->getCurrentLocale()->thenReturn($this->locale);
     $this->contentType = Phake::mock('OpenOrchestra\\ModelBundle\\Document\\ContentType');
     $this->contentTypeEvent = Phake::mock('OpenOrchestra\\ModelInterface\\Event\\ContentTypeEvent');
     Phake::when($this->contentTypeEvent)->getContentType()->thenReturn($this->contentType);
     $this->subscriber = new LogContentTypeSubscriber($this->logger, $this->context);
 }
 /**
  * Set up the test
  */
 public function setUp()
 {
     parent::setUp();
     $this->media = Phake::mock('OpenOrchestra\\Media\\Model\\MediaInterface');
     $this->mediaEvent = Phake::mock('OpenOrchestra\\MediaAdmin\\Event\\MediaEvent');
     Phake::when($this->mediaEvent)->getMedia()->thenReturn($this->media);
     $this->folder = Phake::mock('OpenOrchestra\\Media\\Model\\FolderInterface');
     $this->folderEvent = Phake::mock('OpenOrchestra\\MediaAdmin\\Event\\FolderEvent');
     Phake::when($this->folderEvent)->getFolder()->thenReturn($this->folder);
     $this->mediaContext = array('media_name' => $this->media->getName());
     $this->folderContext = array('folder_name' => $this->folder->getName());
     $this->subscriber = new LogMediaSubscriber($this->logger);
 }