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

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

    public function dispatchContinuesWithNextRequestFoundInAForwardException()
    {
        /** @var ActionRequest|\PHPUnit_Framework_MockObject_MockObject $nextRequest */
        $nextRequest = $this->getMockBuilder(ActionRequest::class)->disableOriginalConstructor()->getMock();
        $nextRequest->expects($this->atLeastOnce())->method('isDispatched')->will($this->returnValue(true));
        $this->mockParentRequest->expects($this->atLeastOnce())->method('isDispatched')->will($this->returnValue(false));
        $this->mockController->expects($this->at(0))->method('processRequest')->with($this->mockActionRequest)->will($this->throwException(new StopActionException()));
        $forwardException = new ForwardException();
        $forwardException->setNextRequest($nextRequest);
        $this->mockController->expects($this->at(1))->method('processRequest')->with($this->mockParentRequest)->will($this->throwException($forwardException));
        $this->dispatcher->dispatch($this->mockActionRequest, $this->mockHttpResponse);
    }