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

testDeleteNamesWithSecondArgument() public method

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