MediaWiki
1.33.0
|
Try to make sure that extensions register all rights in $wgAvailableRights or via the 'UserGetAllRights' hook. 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. More... | |
testAvailableRights () | |
@coversNothing More... | |
Private Member Functions | |
getAllVisibleRights () | |
Returns all rights that should be in $wgAvailableRights + all rights registered via the 'UserGetAllRights' hook + all "core" rights. More... | |
Try to make sure that extensions register all rights in $wgAvailableRights or via the 'UserGetAllRights' hook.
Definition at line 9 of file AvailableRightsTest.php.
|
private |
Returns all rights that should be in $wgAvailableRights + all rights registered via the 'UserGetAllRights' hook + all "core" rights.
Definition at line 19 of file AvailableRightsTest.php.
References $wgGroupPermissions, $wgRevokePermissions, as, and User\getAllRights().
Referenced by testAvailableRights().
AvailableRightsTest::testAllRightsWithMessage | ( | ) |
Test, if for all rights a right- message exist, which is used on Special:ListGroupRights as help text Extensions and core.
@coversNothing
Definition at line 64 of file AvailableRightsTest.php.
References as, User\getAllRights(), and Language\getMessageKeysFor().
AvailableRightsTest::testAvailableRights | ( | ) |
@coversNothing
Definition at line 41 of file AvailableRightsTest.php.
References User\getAllRights(), and getAllVisibleRights().