eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\Gateway\DoctrineDatabaseTest::testCountGroupsForType PHP Method

testCountGroupsForType() public method

    public function testCountGroupsForType()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/existing_types.php');
        $gateway = $this->getGateway();
        $this->assertEquals(1, $gateway->countGroupsForType(1, 1));
        $this->assertEquals(0, $gateway->countGroupsForType(23, 0));
    }