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

testDeleteGroupAssignmentsForTypeExisting() public method

    public function testDeleteGroupAssignmentsForTypeExisting()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/existing_types.php');
        $gateway = $this->getGateway();
        $gateway->deleteGroupAssignmentsForType(1, 0);
        $countAffectedAttr = $this->getDatabaseHandler()->createSelectQuery();
        $countAffectedAttr->select('COUNT(*)')->from('ezcontentclass_classgroup');
        $this->assertQueryResult(array(array(2)), $countAffectedAttr);
    }