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->forwardMock->expects($this->once())->method('forward')->with('defaultIndex')->willReturnSelf();
     $this->assertSame($this->forwardMock, $this->controller->executeInternal());
 }
Example #4
0
 /**
  * Index action
  *
  * @return $this
  */
 public function execute($coreRoute = null)
 {
     $this->messageManager->addSuccess('Message from new controller.');
     return parent::execute($coreRoute);
 }