Neos\Flow\Tests\Unit\Mvc\DispatcherTest::dispatchIgnoresStopExceptionsForFirstLevelActionRequests PHP Метод

dispatchIgnoresStopExceptionsForFirstLevelActionRequests() публичный Метод

    public function dispatchIgnoresStopExceptionsForFirstLevelActionRequests()
    {
        $this->mockParentRequest->expects($this->at(0))->method('isDispatched')->will($this->returnValue(false));
        $this->mockParentRequest->expects($this->at(2))->method('isDispatched')->will($this->returnValue(true));
        $this->mockParentRequest->expects($this->atLeastOnce())->method('isMainRequest')->will($this->returnValue(true));
        $this->mockController->expects($this->atLeastOnce())->method('processRequest')->will($this->throwException(new StopActionException()));
        $this->dispatcher->dispatch($this->mockParentRequest, $this->mockHttpResponse);
    }