Example #1
0
 public function testExecuteInternal()
 {
     $this->view->expects($this->once())
         ->method('loadLayout')
         ->with(false);
     $this->view->expects($this->once())
         ->method('renderLayout');
     $this->controller->executeInternal();
 }
Example #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);
     }
 }