/**
  * {@inheritdoc}
  */
 public function execute($coreRoute = null)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'execute');
     if (!$pluginInfo) {
         return parent::execute($coreRoute);
     } else {
         return $this->___callPlugins('execute', func_get_args(), $pluginInfo);
     }
 }
Example #2
0
 public function testExecuteResultForward()
 {
     $this->forwardMock->expects($this->once())->method('forward')->with('defaultIndex')->willReturnSelf();
     $this->assertSame($this->forwardMock, $this->controller->execute());
 }
Example #3
0
 /**
  * Index action
  *
  * @return $this
  */
 public function execute($coreRoute = null)
 {
     $this->messageManager->addSuccess('Message from new controller.');
     return parent::execute($coreRoute);
 }