public function testRemoveSubtree()
{
$this->loggerMock->expects($this->once())->method('logCall');
$this->cacheMock->expects($this->at(0))->method('clear')->with('location')->will($this->returnValue(true));
$this->cacheMock->expects($this->at(1))->method('clear')->with('content')->will($this->returnValue(true));
$this->cacheMock->expects($this->at(2))->method('clear')->with('user', 'role', 'assignments', 'byGroup')->will($this->returnValue(true));
$innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Location\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('locationHandler')->will($this->returnValue($innerHandlerMock));
$innerHandlerMock->expects($this->once())->method('removeSubtree')->with(33)->will($this->returnValue(true));
$handler = $this->persistenceCacheHandler->locationHandler();
$handler->removeSubtree(33);
}