public function testExecuteWithoutTaxClass() { $this->request->expects($this->once())->method('getParam')->with('tax_class')->willReturn(null); $this->forwardFactoryMock->expects($this->once())->method('create')->willReturn($this->resultForward); $this->resultForward->expects($this->once())->method('forward')->with('new')->willReturnSelf(); $this->assertSame($this->resultForward, $this->controller->execute()); }
/** * {@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); } }