Add AvailableRightsTest for User::getAllRights completeness
authorMarius Hoch <hoo@online.de>
Mon, 9 Feb 2015 22:50:35 +0000 (23:50 +0100)
committerMarius Hoch <hoo@online.de>
Tue, 10 Feb 2015 12:12:11 +0000 (13:12 +0100)
commitd333cd8f7be190d7e296721caa79478ab7ef1b20
tree6651b8a70be5fb49ccbd74fc983fa07bd170af2b
parent6d9946294737f21d939c1addf81496ed679beb24
Add AvailableRightsTest for User::getAllRights completeness

Because extensions often don't add their rights to $wgAvailableRights
or via the 'UserGetAllRights' hook, thus User::getAllRights is incomplete.

Change-Id: Id9ae9eff71e822ec5c038c1c1f990ac36f05cea8
includes/User.php
tests/phpunit/structure/AvailableRightsTest.php [new file with mode: 0644]