コード例 #1
0
ファイル: SaveTest.php プロジェクト: Doability/magento2dev
 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());
 }
コード例 #2
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);
     }
 }