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

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

Makes also sure that identity route parts are encoded via rawurlencode (which encodes spaces to "%20") and not urlencode (which encodes spaces to "+"). According to RFC 3986 that is correct for path segments.
    public function resolveValueSetsTheRouteValueToTheUrlEncodedIdentifierIfNoUriPatternIsSpecified()
    {
        $value = ['__identity' => 'Some Identifier'];
        $this->mockObjectPathMappingRepository->expects($this->never())->method('findOneByObjectTypeUriPatternAndIdentifier');
        $this->identityRoutePart->setObjectType('stdClass');
        $this->identityRoutePart->_call('resolveValue', $value);
        $this->assertSame('Some%20Identifier', $this->identityRoutePart->getValue());
        $this->assertNotSame('Some+Identifier', $this->identityRoutePart->getValue());
    }
IdentityRoutePartTest