Merge "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1"
[lhc/web/wiklou.git] / tests / phpunit / structure / AvailableRightsTest.php
index 9737e82..51d31aa 100644 (file)
@@ -34,12 +34,18 @@ class AvailableRightsTest extends PHPUnit_Framework_TestCase {
        }
 
        public function testAvailableRights() {
-               $missingRights = array_diff( $this->getAllVisibleRights(), User::getAllRights() );
+               $missingRights = array_diff(
+                       $this->getAllVisibleRights(),
+                       User::getAllRights()
+               );
 
                $this->assertEquals(
                        array(),
-                       array_values( $missingRights ), // Re-Index to produce nicer output, keys are meaningless
-                       'Additional user rights need to be added to $wgAvailableRights or via the "UserGetAllRights" hook'
+                       // Re-index to produce nicer output, keys are meaningless.
+                       array_values( $missingRights ),
+                       'Additional user rights need to be added to $wgAvailableRights or ' .
+                       'via the "UserGetAllRights" hook. See the instructions at: ' .
+                       'https://www.mediawiki.org/wiki/Manual:User_rights#Adding_new_rights'
                );
        }
 }