MediaWiki  REL1_24
UserTest Class Reference

Database More...

Inheritance diagram for UserTest:
Collaboration diagram for UserTest:

List of all members.

Public Member Functions

 testAllRightsWithMessage ()
 Test, if for all rights a right- message exist, which is used on Special:ListGroupRights as help text Extensions and core.
 testAnonOptions ()
 Bug 37963 Make sure defaults are loaded when setOption is called.
 testCheckPasswordValidity ()
 Test password validity checks.
 testEditCount ()
 Test User::editCount medium User::getEditCount.
 testGetCanonicalName ($name, $expectedArray, $msg)
 User::getCanonicalName() provideGetCanonicalName
 testGetGroupsWithPermission ($expected, $right)
 provideGetGroupsWithPermission User::getGroupsWithPermission
 testGroupPermissions ()
 User::getGroupPermissions
 testIsIP ($value, $result, $message)
 provideIPs User::isIP
 testIsValidUserName ($username, $result, $message)
 provideUserNames User::isValidUserName
 testOptions ()
 Test changing user options.
 testPasswordExpire ()
 Test password expiration.
 testRevokePermissions ()
 User::getGroupPermissions
 testUserPermissions ()
 User::getRights

Static Public Member Functions

static provideGetCanonicalName ()
static provideGetGroupsWithPermission ()
static provideIPs ()
static provideUserNames ()

Protected Member Functions

 setUp ()

Protected Attributes

User $user

Private Member Functions

 setUpPermissionGlobals ()

Detailed Description

Database

Definition at line 9 of file UserTest.php.


Member Function Documentation

static UserTest::provideGetCanonicalName ( ) [static]

Definition at line 340 of file UserTest.php.

References array().

Definition at line 106 of file UserTest.php.

References array().

static UserTest::provideIPs ( ) [static]

Definition at line 135 of file UserTest.php.

References array().

static UserTest::provideUserNames ( ) [static]

Definition at line 160 of file UserTest.php.

References array().

UserTest::setUp ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 14 of file UserTest.php.

References array(), MediaWikiTestCase\setMwGlobals(), setUpPermissionGlobals(), user, and User.

Definition at line 28 of file UserTest.php.

References array(), and global.

Referenced by setUp().

Test, if for all rights a right- message exist, which is used on Special:ListGroupRights as help text Extensions and core.

Definition at line 186 of file UserTest.php.

Bug 37963 Make sure defaults are loaded when setOption is called.

User::loadOptions

Definition at line 266 of file UserTest.php.

Test password validity checks.

There are 3 checks in core,

Definition at line 306 of file UserTest.php.

Test User::editCount medium User::getEditCount.

Definition at line 214 of file UserTest.php.

UserTest::testGetCanonicalName ( name,
expectedArray,
msg 
)

User::getCanonicalName() provideGetCanonicalName

Definition at line 330 of file UserTest.php.

UserTest::testGetGroupsWithPermission ( expected,
right 
)

provideGetGroupsWithPermission User::getGroupsWithPermission

Definition at line 98 of file UserTest.php.

UserTest::testIsIP ( value,
result,
message 
)

provideIPs User::isIP

Definition at line 131 of file UserTest.php.

UserTest::testIsValidUserName ( username,
result,
message 
)

provideUserNames User::isValidUserName

Definition at line 156 of file UserTest.php.

Test changing user options.

User::setOption User::getOption

Definition at line 248 of file UserTest.php.

Test password expiration.

User::getPasswordExpired()

Definition at line 277 of file UserTest.php.


Member Data Documentation

User UserTest::$user [protected]

Definition at line 12 of file UserTest.php.


The documentation for this class was generated from the following file: