Neos\Flow\Tests\Unit\Mvc\Routing\IdentityRoutePartTest::resolveValueConvertsCaseOfResolvedPathSegmentIfLowerCaseIsTrue PHP Метод

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

    public function resolveValueConvertsCaseOfResolvedPathSegmentIfLowerCaseIsTrue()
    {
        $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(true);
        $this->identityRoutePart->_call('resolveValue', $value);
        $this->assertSame('thepathsegment', $this->identityRoutePart->getValue());
    }
IdentityRoutePartTest