onPermissionUpdate() public method

Removes all FileVersionMetas belonging to the collection, which just got secured.
public onPermissionUpdate ( PermissionUpdateEvent $event )
$event Sulu\Component\Security\Event\PermissionUpdateEvent
Example #1
0
 public function testOnPermissionUpdateWrongType()
 {
     $event = new PermissionUpdateEvent(\stdClass::class, '1', null);
     $this->fileVersionMetaRepository->findByCollectionId(Argument::any())->shouldNotBeCalled();
     $this->searchManager->deindex(Argument::any())->shouldNotBeCalled();
     $this->permissionListener->onPermissionUpdate($event);
 }