コード例 #1
0
 public function testExecuteResultForward()
 {
     $this->forwardMock->expects($this->once())->method('setController')->with('index')->will($this->returnSelf());
     $this->forwardMock->expects($this->once())->method('forward')->with('defaultNoRoute')->will($this->returnSelf());
     $this->_cmsHelperMock->expects($this->once())->method('prepareResultPage')->will($this->returnValue(false));
     $this->assertSame($this->forwardMock, $this->_controller->execute());
 }
コード例 #2
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);
     }
 }