public function testUpdate()
{
$this->loggerMock->expects($this->once())->method('logCall');
$innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Section\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('sectionHandler')->will($this->returnValue($innerHandler));
$innerHandler->expects($this->once())->method('update')->with(33, 'Old Intranet', 'old_intranet')->will($this->returnValue(new SPISection(array('id' => 33, 'name' => 'Old Intranet', 'identifier' => 'old_intranet'))));
$cacheItemMock = $this->getMock('Stash\\Interfaces\\ItemInterface');
$this->cacheMock->expects($this->once())->method('getItem')->with('section', 33)->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('set')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Section'))->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('save')->with();
$cacheItemMock->expects($this->never())->method('get');
$handler = $this->persistenceCacheHandler->sectionHandler();
$handler->update(33, 'Old Intranet', 'old_intranet');
}