ApiPlatform\Core\Tests\Doctrine\Orm\CollectionDataProviderTest::testThrowResourceClassNotSupportedException PHP Method

testThrowResourceClassNotSupportedException() public method

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