Neos\Flow\Tests\Unit\Mvc\DispatchComponentTest::handleDoesNotSetDefaultControllerAndActionNameIfTheyAreSetAlready PHP Метод

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

    public function handleDoesNotSetDefaultControllerAndActionNameIfTheyAreSetAlready()
    {
        $this->mockHttpRequest->expects($this->any())->method('getArguments')->will($this->returnValue([]));
        $this->mockPropertyMapper->expects($this->any())->method('convert')->with('', 'array', $this->mockPropertyMappingConfiguration)->will($this->returnValue([]));
        $this->mockActionRequest->expects($this->once())->method('getControllerName')->will($this->returnValue('SomeController'));
        $this->mockActionRequest->expects($this->once())->method('getControllerActionName')->will($this->returnValue('someAction'));
        $this->mockActionRequest->expects($this->never())->method('setControllerName');
        $this->mockActionRequest->expects($this->never())->method('setControllerActionName');
        $this->dispatchComponent->handle($this->mockComponentContext);
    }