ApiPlatform\Core\Tests\DataProvider\ChainCollectionDataProviderTest::testGetCollectionExeptions PHP 메소드

testGetCollectionExeptions() 공개 메소드

    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));
    }