예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'execute');
     if (!$pluginInfo) {
         return parent::execute();
     } else {
         return $this->___callPlugins('execute', func_get_args(), $pluginInfo);
     }
 }
예제 #2
0
 public function testExecuteResultForward()
 {
     $this->requestMock->expects($this->atLeastOnce())->method('getParam')->willReturnMap([['page_id', $this->pageId, $this->pageId], ['id', false, $this->pageId]]);
     $this->forwardMock->expects($this->once())->method('forward')->with('noroute')->willReturnSelf();
     $this->assertSame($this->forwardMock, $this->controller->execute());
 }