Test ApiUserrights
authorAryeh Gregor <ayg@aryeh.name>
Mon, 9 Apr 2018 18:38:09 +0000 (21:38 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Thu, 12 Apr 2018 18:26:02 +0000 (21:26 +0300)
commit5ab1bee6bcf83bd133b48c79fd72da92f58037d4
treef19f76b890529c24680a2c6d105695805a8d5256
parentbf56ea38746c35ca1b5daa23c3e92bb7e86b6b19
Test ApiUserrights

Fixed bug: in PHP versions less than 5.6.0, any request that didn't
attempt to add any groups would warn, because it would call array_fill()
with the second argument (num) equal to 0.  From PHP 5.6.0, the num
argument to array_fill() is allowed to be 0.

Change-Id: I0c5772f15d8f550dc43fb37c3c58d15dd73ea584
includes/api/ApiUserrights.php
tests/phpunit/includes/TestUserRegistry.php
tests/phpunit/includes/api/ApiTestCase.php
tests/phpunit/includes/api/ApiUserrightsTest.php [new file with mode: 0644]