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

testDeleteSection() public method

public testDeleteSection ( )
    public function testDeleteSection()
    {
        $gateway = $this->getDatabaseGateway();
        $result = $gateway->deleteSection(2);
        $this->assertQueryResult(array(array('count' => '5')), $this->getDatabaseHandler()->createSelectQuery()->select('COUNT( * ) AS count')->from('ezsection'));
        $this->assertQueryResult(array(array('count' => '0')), $this->getDatabaseHandler()->createSelectQuery()->select('COUNT( * ) AS count')->from('ezsection')->where('id=2'));
    }