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

testDeleteContent() public method

public testDeleteContent ( )
    public function testDeleteContent()
    {
        $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
        $beforeCount = $this->countContent();
        $gateway = $this->getDatabaseGateway();
        $gateway->deleteContent(14);
        $this->assertEquals(array('all' => $beforeCount - 1, 'this' => 0), array('all' => $this->countContent(), 'this' => $this->countContent(14)));
    }
DoctrineDatabaseTest