/**
  * testGetMenuPermissions
  *
  * @return void
  */
 public function testGetMenuPermissions()
 {
     $permissionHandler = new MenuPermissionHandler($this->permissionFactory, $this->groupRepoMock, $this->memberRepoMock);
     $this->permissionFactory->shouldReceive('makesByType')->andReturn([]);
     $permissions = $permissionHandler->getMenuPermissions();
     $this->assertEquals([], $permissions);
 }
 /**
  * applyMenuPermission
  *
  * @param object $target menu entity or menu item object
  *
  * @return void
  */
 protected function applyMenuPermission($target)
 {
     $permissions = $this->menuPermission->getMenuPermissions();
     $target->applyPermission($permissions);
 }