public function testLoadHasCache()
{
$this->loggerMock->expects($this->never())->method($this->anything());
$cacheItemMock = $this->getMock('Stash\\Interfaces\\ItemInterface');
$this->cacheMock->expects($this->once())->method('getItem')->with('content', 2, 1, ContentHandler::ALL_TRANSLATIONS_KEY)->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('isMiss')->will($this->returnValue(false));
$this->persistenceHandlerMock->expects($this->never())->method('contentHandler');
$cacheItemMock->expects($this->once())->method('get')->will($this->returnValue(new Content(array('fields' => array(), 'versionInfo' => new VersionInfo(array('versionNo' => 1, 'contentInfo' => new ContentInfo(array('id' => 2))))))));
$cacheItemMock->expects($this->never())->method('set');
$handler = $this->persistenceCacheHandler->contentHandler();
$handler->load(2, 1);
}