Currently, only 40.50% of the functions and methods, and 36.65% of the lines of code in the User class are tested
Was: 10.68% of functions and methods and 14.94% of the lines of code
Progress
During this task, the following methods, which were previously untested, had tests added:
- ::getTalkPage, ::getUserPage, ::getTitleKey
- ::getBlockId, ::isAllowedToCreateAccount, ::isBlockedFromEmailuser, ::isBlockedFromUpload
- ::getGroups, ::getGroupMemberships, ::isBot
- ::newFromName, ::newFromSession, ::newFromRow, ::newFromId, ::newFromConfirmationCode
- ::getName, ::setName
- ::getRealName, ::setRealName
- ::getEmail, ::setEmail, ::invalidateEmail, ::setEmailWithConfirmation
- ::getRequest, ::loadFromRow
- ::isWatched, ::addWatch, ::removeWatch
- ::getDefaultOption, ::getBoolOption, ::getIntOption
- ::getStubThreshold, ::requiresHTTPS
- ::setItemLoaded, ::isItemLoaded
- ::isCreatableName, ::isUsableName
- ::changeableGroups
- ::isAllowedAny, ::isAllowedAll, ::isAllowed, ::isNewbie
- ::useRCPatrol, ::useNPPatrol, ::useFilePatrol, ::pingLimiter
- ::validateCache, ::getTouched, ::getDBTouched
- ::logout, ::setId, ::whoIs, ::addToDatabase, ::setEditCountInternal
Testing was also expanded for:
- ::incEditCount, ::getId
- ::getCanonicalName
- ::getDefaultOptions
- ::addGroup, ::removeGroup
- ::idFromName
- ::findUsersByGroup
- ::checkPasswordValidity