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

testDeleteFieldsWithSecondArgument() public method

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