getCollection() public method

public getCollection ( string $resourceClass, string $operationName = null )
$resourceClass string
$operationName string
 /**
  * @expectedException \ApiPlatform\Core\Exception\ResourceClassNotSupportedException
  */
 public function testThrowResourceClassNotSupportedException()
 {
     $managerRegistryProphecy = $this->prophesize(ManagerRegistry::class);
     $managerRegistryProphecy->getManagerForClass(Dummy::class)->willReturn(null)->shouldBeCalled();
     $extensionProphecy = $this->prophesize(QueryResultCollectionExtensionInterface::class);
     $dataProvider = new CollectionDataProvider($managerRegistryProphecy->reveal(), [$extensionProphecy->reveal()]);
     $dataProvider->getCollection(Dummy::class, 'foo');
 }