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