Example #1
0
 /**
  * {@inheritdoc}
  */
 public function dispatch(\Magento\Framework\App\RequestInterface $request)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'dispatch');
     if (!$pluginInfo) {
         return parent::dispatch($request);
     } else {
         return $this->___callPlugins('dispatch', func_get_args(), $pluginInfo);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getResponse()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getResponse');
     if (!$pluginInfo) {
         return parent::getResponse();
     } else {
         return $this->___callPlugins('getResponse', func_get_args(), $pluginInfo);
     }
 }
Example #3
0
 public function testExecuteResultForward()
 {
     $this->requestMock->expects($this->atLeastOnce())->method('getParam')->willReturnMap([['page_id', $this->pageId, $this->pageId], ['id', false, $this->pageId]]);
     $this->forwardMock->expects($this->once())->method('forward')->with('noroute')->willReturnSelf();
     $this->assertSame($this->forwardMock, $this->controller->execute());
 }