MediaWiki  REL1_21
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.
 testEditCount ()
 Test User::editCount medium.
 testGetGroupsWithPermission ($expected, $right)
 provideGetGroupsWithPermission
 testGroupPermissions ()
 testIsValidUserName ($username, $result, $message)
 provideUserNames
 testOptions ()
 Test changing user options.
 testRevokePermissions ()
 testUserPermissions ()

Static Public Member Functions

static provideGetGroupsWithPermission ()
static provideUserNames ()

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Protected Attributes

User $user

Private Member Functions

 setUpPermissionGlobals ()

Detailed Description

Database

Definition at line 9 of file UserTest.php.


Member Function Documentation

Definition at line 91 of file UserTest.php.

References array().

static UserTest::provideUserNames ( ) [static]

Definition at line 119 of file UserTest.php.

References array().

UserTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

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 142 of file UserTest.php.

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

Definition at line 210 of file UserTest.php.

Test User::editCount medium.

Definition at line 169 of file UserTest.php.

UserTest::testGetGroupsWithPermission ( expected,
right 
)

provideGetGroupsWithPermission

Definition at line 83 of file UserTest.php.

Definition at line 50 of file UserTest.php.

References array(), and User\getGroupPermissions().

UserTest::testIsValidUserName ( username,
result,
message 
)

provideUserNames

Definition at line 115 of file UserTest.php.

Test changing user options.

Definition at line 193 of file UserTest.php.

Definition at line 64 of file UserTest.php.

References array(), and User\getGroupPermissions().

Definition at line 72 of file UserTest.php.

References user.


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: