Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->postResponseEvent = $this->prophesize('Symfony\\Component\\HttpKernel\\Event\\PostResponseEvent');
     $this->handler = $this->prophesize('Sulu\\Component\\HttpCache\\HandlerFlushInterface');
     $this->subscriber = new FlushSubscriber($this->handler->reveal());
     FlushSubscriber::getSubscribedEvents();
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->structure = $this->prophesize('Sulu\\Component\\Content\\Compat\\StructureInterface');
     $this->response = $this->prophesize('Symfony\\Component\\HttpFoundation\\Response');
     $this->handler1 = $this->prophesize('Sulu\\Component\\HttpCache\\HandlerUpdateResponseInterface')->willImplement('Sulu\\Component\\HttpCache\\HandlerInvalidateStructureInterface')->willImplement('Sulu\\Component\\HttpCache\\HandlerFlushInterface');
     $this->handler2 = $this->prophesize('Sulu\\Component\\HttpCache\\HandlerUpdateResponseInterface')->willImplement('Sulu\\Component\\HttpCache\\HandlerInvalidateStructureInterface')->willImplement('Sulu\\Component\\HttpCache\\HandlerFlushInterface');
     $this->handler = new AggregateHandler([$this->handler1->reveal(), $this->handler2->reveal()]);
 }
 public function setUp()
 {
     parent::setUp();
     $this->nodeEvent = $this->prophesize('Sulu\\Component\\Content\\Mapper\\Event\\ContentNodeEvent');
     $this->deleteEvent = $this->prophesize('Sulu\\Component\\Content\\Mapper\\Event\\ContentNodeDeleteEvent');
     $this->structure = $this->prophesize('Sulu\\Component\\Content\\Compat\\StructureInterface');
     $this->handler = $this->prophesize('Sulu\\Component\\HttpCache\\HandlerInvalidateStructureInterface');
     $this->subscriber = new ContentMapperSubscriber($this->handler->reveal());
     ContentMapperSubscriber::getSubscribedEvents();
 }
 public function setUp()
 {
     parent::setUp();
     $this->getResponseEvent = $this->prophesize('Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent');
     $this->filterResponseEvent = $this->prophesize('Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent');
     $this->structure = $this->prophesize('Sulu\\Component\\Content\\Compat\\StructureInterface');
     $this->handler = $this->prophesize('Sulu\\Component\\HttpCache\\HandlerUpdateResponseInterface')->willImplement('Sulu\\Component\\HttpCache\\HandlerInvalidateStructureInterface');
     $this->response = new Response();
     $this->request = new Request();
     $this->subscriber = new UpdateResponseSubscriber($this->handler->reveal());
 }