Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated PHP Method

ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated() public method

    public function ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated()
    {
        $this->route->setUriPattern('{key1}');
        $this->route->setRoutePartsConfiguration(['key1' => ['objectType' => 'SomeObjectType']]);
        $this->route->parse();
        $identityRoutePart = current($this->route->_get('routeParts'));
        $this->assertInstanceOf(Routing\IdentityRoutePart::class, $identityRoutePart);
        $this->assertSame('SomeObjectType', $identityRoutePart->getObjectType());
    }
RouteTest