Neos\Flow\Tests\Unit\Mvc\ActionRequestTest::anHttpRequestOrActionRequestIsRequiredAsParentRequest PHP 메소드

anHttpRequestOrActionRequestIsRequiredAsParentRequest() 공개 메소드

By design, the root request will always be an HTTP request because it is the only of the two types which can be instantiated without having to pass another request as the parent request.
    public function anHttpRequestOrActionRequestIsRequiredAsParentRequest()
    {
        $this->assertSame($this->mockHttpRequest, $this->actionRequest->getParentRequest());
        $anotherActionRequest = new ActionRequest($this->actionRequest);
        $this->assertSame($this->actionRequest, $anotherActionRequest->getParentRequest());
    }
ActionRequestTest