public function testRemoveURLAliases()
{
$this->loggerMock->expects($this->once())->method('logCall');
$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('removeURLAliases');
$this->cacheMock->expects($this->at(0))->method('clear')->with('urlAlias', 'url');
$this->cacheMock->expects($this->at(1))->method('clear')->with('urlAlias', 21);
$this->cacheMock->expects($this->at(2))->method('clear')->with('urlAlias', 32);
$this->cacheMock->expects($this->at(3))->method('clear')->with('urlAlias', 'location', 44);
$handler = $this->persistenceCacheHandler->urlAliasHandler();
$handler->removeURLAliases(array(new UrlAlias(array('id' => 21)), new UrlAlias(array('id' => 32, 'type' => UrlAlias::LOCATION, 'destination' => 44))));
}