Neos\Flow\Tests\Unit\Mvc\Routing\IdentityRoutePartTest::resolveValueKeepsCaseOfResolvedPathSegmentIfLowerCaseIsTrue PHP Method

resolveValueKeepsCaseOfResolvedPathSegmentIfLowerCaseIsTrue() public method

    public function resolveValueKeepsCaseOfResolvedPathSegmentIfLowerCaseIsTrue()
    {
        $value = ['__identity' => 'SomeIdentifier'];
        $mockObjectPathMapping = $this->createMock(ObjectPathMapping::class);
        $mockObjectPathMapping->expects($this->once())->method('getPathSegment')->will($this->returnValue('ThePathSegment'));
        $this->mockObjectPathMappingRepository->expects($this->once())->method('findOneByObjectTypeUriPatternAndIdentifier')->with('stdClass', 'SomeUriPattern', 'SomeIdentifier')->will($this->returnValue($mockObjectPathMapping));
        $this->identityRoutePart->setObjectType('stdClass');
        $this->identityRoutePart->setUriPattern('SomeUriPattern');
        $this->identityRoutePart->setLowerCase(false);
        $this->identityRoutePart->_call('resolveValue', $value);
        $this->assertSame('ThePathSegment', $this->identityRoutePart->getValue());
    }
IdentityRoutePartTest