public function testDeleteField()
{
$this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
$beforeCount = $this->countContentFields();
$gateway = $this->getDatabaseGateway();
$gateway->deleteField(22);
$this->assertEquals($beforeCount - 2, $this->countContentFields());
$this->assertQueryResult(array(), $this->getDatabaseHandler()->createSelectQuery()->select('*')->from('ezcontentobject_attribute')->where('id=22'));
}