ApiPlatform\Core\Tests\DataProvider\ChainCollectionDataProviderTest::testGetCollectionExeptions PHP Method

testGetCollectionExeptions() public method

    public function testGetCollectionExeptions()
    {
        $firstDataProvider = $this->prophesize(CollectionDataProviderInterface::class);
        $firstDataProvider->getCollection('notfound', 1)->willThrow(ResourceClassNotSupportedException::class);
        $chainItemDataProvider = new ChainCollectionDataProvider([$firstDataProvider->reveal()]);
        $this->assertEquals('', $chainItemDataProvider->getCollection('notfound', 1));
    }