public function testListURLAliasesForLocationCustomIsMiss()
{
$this->loggerMock->expects($this->once())->method('logCall');
$cacheItemMock = $this->getMock('Stash\\Interfaces\\ItemInterface');
$this->cacheMock->expects($this->once())->method('getItem')->with('urlAlias', 'location', '44', 'custom')->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('get')->will($this->returnValue(null));
$cacheItemMock->expects($this->once())->method('isMiss')->will($this->returnValue(true));
$innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\UrlAlias\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('urlAliasHandler')->will($this->returnValue($innerHandler));
$innerHandler->expects($this->once())->method('listURLAliasesForLocation')->with(44, true)->will($this->returnValue(array(new UrlAlias(array('id' => 55)), new UrlAlias(array('id' => 58)), new UrlAlias(array('id' => 91)))));
$cacheItemMock->expects($this->once())->method('set')->with(array(55, 58, 91))->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('save')->with();
$handler = $this->persistenceCacheHandler->urlAliasHandler();
$handler->listURLAliasesForLocation(44, true);
}