public function testCannotCreateQueryBuilder()
{
$repositoryProphecy = $this->prophesize(ObjectRepository::class);
$managerProphecy = $this->prophesize(ObjectManager::class);
$managerProphecy->getRepository(Dummy::class)->willReturn($repositoryProphecy->reveal())->shouldBeCalled();
$managerRegistryProphecy = $this->prophesize(ManagerRegistry::class);
$managerRegistryProphecy->getManagerForClass(Dummy::class)->willReturn($managerProphecy->reveal())->shouldBeCalled();
$dataProvider = new CollectionDataProvider($managerRegistryProphecy->reveal());
$this->assertEquals([], $dataProvider->getCollection(Dummy::class, 'foo'));
}