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

testDeleteFieldDefinitionsForTypeNotExisting() public method

    public function testDeleteFieldDefinitionsForTypeNotExisting()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/existing_types.php');
        $gateway = $this->getGateway();
        $gateway->deleteFieldDefinitionsForType(23, 1);
        $countNotAffectedAttr = $this->getDatabaseHandler()->createSelectQuery();
        $countNotAffectedAttr->select('COUNT(*)')->from('ezcontentclass_attribute');
        $this->assertQueryResult(array(array(7)), $countNotAffectedAttr);
    }