MediaWiki  1.27.2
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

 testAvailableRights ()
 

Private Member Functions

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

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

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 17 of file AvailableRightsTest.php.

References as, User\getAllRights(), and global.

Referenced by testAvailableRights().

AvailableRightsTest::testAvailableRights ( )

Definition at line 36 of file AvailableRightsTest.php.

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


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