From: addshore Date: Fri, 23 Mar 2018 11:33:10 +0000 (+0000) Subject: Api requests can throw a ApiUsageException, and that should be expected X-Git-Tag: 1.31.0-rc.0~195 X-Git-Url: http://git.cyclocoop.org/wiki/%7B%7Bpath%7D%7Dmw-config/index.php?a=commitdiff_plain;h=41b2cb25bd326228963f45d5729ff0eed6fe1681;p=lhc%2Fweb%2Fwiklou.git Api requests can throw a ApiUsageException, and that should be expected Change-Id: I4aa6e7511747c0d811e2e617b88e681a6eda875d --- diff --git a/tests/phpunit/includes/api/ApiTestCase.php b/tests/phpunit/includes/api/ApiTestCase.php index f1ff94751e..7ecb7299eb 100644 --- a/tests/phpunit/includes/api/ApiTestCase.php +++ b/tests/phpunit/includes/api/ApiTestCase.php @@ -68,6 +68,7 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { * @param bool $appendModule * @param User|null $user * + * @throws ApiUsageException * @return array */ protected function doApiRequest( array $params, array $session = null,