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

testDeleteFields() public method

public testDeleteFields ( )
    public function testDeleteFields()
    {
        $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
        $beforeCount = array('all' => $this->countContentFields(), 'this' => $this->countContentFields(4));
        $gateway = $this->getDatabaseGateway();
        $gateway->deleteFields(4);
        $this->assertEquals(array('all' => $beforeCount['all'] - 2, 'this' => 0), array('all' => $this->countContentFields(), 'this' => $this->countContentFields(4)));
    }
DoctrineDatabaseTest