MediaWiki
REL1_22
|
Database More...
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 User::getEditCount. | |
testGetGroupsWithPermission ($expected, $right) | |
provideGetGroupsWithPermission User::getGroupsWithPermission | |
testGroupPermissions () | |
User::getGroupPermissions | |
testIsValidUserName ($username, $result, $message) | |
provideUserNames User::isValidUserName | |
testOptions () | |
Test changing user options. | |
testRevokePermissions () | |
User::getGroupPermissions | |
testUserPermissions () | |
User::getRights | |
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 () |
Database
Definition at line 9 of file UserTest.php.
static UserTest::provideGetGroupsWithPermission | ( | ) | [static] |
Definition at line 106 of file UserTest.php.
References array().
static UserTest::provideUserNames | ( | ) | [static] |
Definition at line 135 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.
UserTest::setUpPermissionGlobals | ( | ) | [private] |
Test, if for all rights a right- message exist, which is used on Special:ListGroupRights as help text Extensions and core.
Definition at line 158 of file UserTest.php.
Bug 37963 Make sure defaults are loaded when setOption is called.
Definition at line 230 of file UserTest.php.
Test User::editCount medium User::getEditCount.
Definition at line 186 of file UserTest.php.
UserTest::testGetGroupsWithPermission | ( | $ | expected, |
$ | right | ||
) |
provideGetGroupsWithPermission User::getGroupsWithPermission
Definition at line 98 of file UserTest.php.
Definition at line 58 of file UserTest.php.
UserTest::testIsValidUserName | ( | $ | username, |
$ | result, | ||
$ | message | ||
) |
provideUserNames User::isValidUserName
Definition at line 131 of file UserTest.php.
Test changing user options.
User::setOption User::getOption
Definition at line 212 of file UserTest.php.
Definition at line 75 of file UserTest.php.
Definition at line 86 of file UserTest.php.
Definition at line 12 of file UserTest.php.