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

testDeleteNames() public method

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