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

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

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