eZ\Publish\Core\Persistence\Legacy\Tests\Content\Section\SectionHandlerTest::testUpdate PHP Method

testUpdate() public method

public testUpdate ( )
    public function testUpdate()
    {
        $handler = $this->getSectionHandler();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('updateSection')->with($this->equalTo(23), $this->equalTo('New Section'), $this->equalTo('new_section'));
        $sectionRef = new Section();
        $sectionRef->id = 23;
        $sectionRef->name = 'New Section';
        $sectionRef->identifier = 'new_section';
        $result = $handler->update(23, 'New Section', 'new_section');
        $this->assertEquals($sectionRef, $result);
    }