Set API limits for page restrictions to 10
[lhc/web/wiklou.git] / tests / phpunit / includes / api / ApiBlockTest.php
index 9898e53..e229f0c 100644 (file)
@@ -274,7 +274,8 @@ class ApiBlockTest extends ApiTestCase {
 
        /**
         * @expectedException ApiUsageException
-        * @expectedExceptionMessage "pagerestrictions" may not be over 10 (set to 11) for bots or sysops.
+        * @expectedExceptionMessage Too many values supplied for parameter "pagerestrictions". The
+        * limit is 10.
         */
        public function testBlockingToManyRestrictions() {
                $this->setMwGlobals( [