ApiPlatform\Core\Tests\Bridge\Symfony\Routing\IriConverterTest::testGetItemFromIriItemNotFoundException PHP Method

testGetItemFromIriItemNotFoundException() public method

    public function testGetItemFromIriItemNotFoundException()
    {
        $propertyNameCollectionFactoryProphecy = $this->prophesize(PropertyNameCollectionFactoryInterface::class);
        $propertyMetadataFactoryProphecy = $this->prophesize(PropertyMetadataFactoryInterface::class);
        $itemDataProviderProphecy = $this->prophesize(ItemDataProviderInterface::class);
        $itemDataProviderProphecy->getItem('AppBundle\\Entity\\User', 3, null, [])->shouldBeCalledTimes(1);
        $routeNameResolverProphecy = $this->prophesize(RouteNameResolverInterface::class);
        $routerProphecy = $this->prophesize(RouterInterface::class);
        $routerProphecy->match('/users/3')->willReturn(['_api_resource_class' => 'AppBundle\\Entity\\User', 'id' => 3])->shouldBeCalledTimes(1);
        $converter = new IriConverter($propertyNameCollectionFactoryProphecy->reveal(), $propertyMetadataFactoryProphecy->reveal(), $itemDataProviderProphecy->reveal(), $routeNameResolverProphecy->reveal(), $routerProphecy->reveal());
        $converter->getItemFromIri('/users/3');
    }