public getCollection ( string $resourceClass, string $operationName = null ) | ||
$resourceClass | string | |
$operationName | string |
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)); }