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

testUpdateSection() public method

public testUpdateSection ( )
    public function testUpdateSection()
    {
        $gateway = $this->getDatabaseGateway();
        $gateway->updateSection(2, 'New Section', 'new_section');
        $this->assertQueryResult(array(array('id' => '2', 'identifier' => 'new_section', 'name' => 'New Section', 'locale' => '')), $this->getDatabaseHandler()->createSelectQuery()->select('id', 'identifier', 'name', 'locale')->from('ezsection')->where('id=2'));
    }