Merge "Make DatabaseMysqlBase::insertSelect() safer to use"
[lhc/web/wiklou.git] / tests / phpunit / structure / AvailableRightsTest.php
index ccf5393..4ab0c2c 100644 (file)
@@ -8,6 +8,8 @@
  */
 class AvailableRightsTest extends PHPUnit_Framework_TestCase {
 
+       use MediaWikiCoversValidator;
+
        /**
         * Returns all rights that should be in $wgAvailableRights + all rights
         * registered via the 'UserGetAllRights' hook + all "core" rights.
@@ -40,7 +42,7 @@ class AvailableRightsTest extends PHPUnit_Framework_TestCase {
                );
 
                $this->assertEquals(
-                       array(),
+                       [],
                        // Re-index to produce nicer output, keys are meaningless.
                        array_values( $missingRights ),
                        'Additional user rights need to be added to $wgAvailableRights or ' .