/** * {@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); } }
public function testIndexActionWhenStatusNotInstanceofMagentoObject() { $this->_requestMock->expects( $this->once() )->method( 'getParam' )->with( '__status__' )->will( $this->returnValue('string') ); $this->_controller->executeInternal(); }