MediaWiki REL1_32
AvailableRightsTest Class Reference

Try to make sure that extensions register all rights in $wgAvailableRights or via the 'UserGetAllRights' hook. More...

Inheritance diagram for AvailableRightsTest:
Collaboration diagram for AvailableRightsTest:

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.
 
 testAvailableRights ()
 @coversNothing
 

Private Member Functions

 getAllVisibleRights ()
 Returns all rights that should be in $wgAvailableRights + all rights registered via the 'UserGetAllRights' hook + all "core" rights.
 

Detailed Description

Try to make sure that extensions register all rights in $wgAvailableRights or via the 'UserGetAllRights' hook.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Definition at line 9 of file AvailableRightsTest.php.

Member Function Documentation

◆ getAllVisibleRights()

AvailableRightsTest::getAllVisibleRights ( )
private

Returns all rights that should be in $wgAvailableRights + all rights registered via the 'UserGetAllRights' hook + all "core" rights.

Returns
string[]

Definition at line 19 of file AvailableRightsTest.php.

References $wgGroupPermissions, $wgRevokePermissions, as, and User\getAllRights().

Referenced by testAvailableRights().

◆ testAllRightsWithMessage()

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, and User\getAllRights().

◆ testAvailableRights()

AvailableRightsTest::testAvailableRights ( )

@coversNothing

Definition at line 41 of file AvailableRightsTest.php.

References User\getAllRights(), and getAllVisibleRights().


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