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