X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiBaseTest.php;h=3f6cac9a00af64188bb589731fb79ee5cd12df52;hb=27c61fb1e94da9114314468fd00bcf129ec064b6;hp=ee0ad946bd38b88e1b78df0ac2ef46893e795a6e;hpb=12d3c539240e38ae7d316f8ca002c7f563563fc0;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiBaseTest.php b/tests/phpunit/includes/api/ApiBaseTest.php index ee0ad946bd..3f6cac9a00 100644 --- a/tests/phpunit/includes/api/ApiBaseTest.php +++ b/tests/phpunit/includes/api/ApiBaseTest.php @@ -51,6 +51,7 @@ class ApiBaseTest extends ApiTestCase { * @param array $paramSettings * @param mixed $expected * @param string[] $warnings + * @covers ApiBase::getParameterFromSettings */ public function testGetParameterFromSettings( $input, $paramSettings, $expected, $warnings ) { $mock = new MockApi(); @@ -126,6 +127,9 @@ class ApiBaseTest extends ApiTestCase { ]; } + /** + * @covers ApiBase::errorArrayToStatus + */ public function testErrorArrayToStatus() { $mock = new MockApi(); @@ -153,6 +157,7 @@ class ApiBaseTest extends ApiTestCase { $block = new \Block( [ 'address' => $user->getName(), 'user' => $user->getID(), + 'by' => $this->getTestSysop()->getUser()->getId(), 'reason' => __METHOD__, 'expiry' => time() + 100500, ] );