+ $pm = $this->createMock( PermissionManager::class );
+ $pm->method( 'userHasAnyRight' )
+ ->will( $this->returnValueMap( [
+ [ $userMock, 'editmyprivateinfo', 'editmyoptions', true ]
+ ] ) );
+ $pm->method( 'userHasRight' )
+ ->will( $this->returnValueMap( [
+ [ $userMock, 'editmyoptions', true ]
+ ] ) );
+