onContentCacheClear() public method

public onContentCacheClear ( ContentCacheClearEvent $event )
$event eZ\Publish\Core\MVC\Symfony\Event\ContentCacheClearEvent
 public function testOnContentCacheClear()
 {
     $contentId = 123;
     $contentInfo = new ContentInfo(['id' => $contentId]);
     $event = new ContentCacheClearEvent($contentInfo);
     $locations = [new Location(), new Location(), new Location(), new Location()];
     $this->locationService->expects($this->once())->method('loadLocations')->with($contentInfo)->will($this->returnValue($locations));
     $this->listener->onContentCacheClear($event);
     $this->assertSame($locations, $event->getLocationsToClear());
 }