public function testLoadCacheIsMiss()
{
$this->loggerMock->expects($this->once())->method('logCall');
$cacheItemMock = $this->getMock('Stash\\Interfaces\\ItemInterface');
$this->cacheMock->expects($this->once())->method('getItem')->with('contentType', 55)->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('get')->will($this->returnValue(null));
$cacheItemMock->expects($this->once())->method('isMiss')->will($this->returnValue(true));
$innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('contentTypeHandler')->will($this->returnValue($innerHandlerMock));
$innerHandlerMock->expects($this->once())->method('load')->with(55)->will($this->returnValue(new SPIType(array('id' => 55, 'name' => 'Forum', 'identifier' => 'forum'))));
$cacheItemMock->expects($this->once())->method('set')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type'))->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('save')->with();
$handler = $this->persistenceCacheHandler->contentTypeHandler();
$handler->load(55);
}