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

testDeleteVersions() public method

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