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

testDeleteField() public method

public testDeleteField ( )
    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'));
    }
DoctrineDatabaseTest