From 41b2cb25bd326228963f45d5729ff0eed6fe1681 Mon Sep 17 00:00:00 2001 From: addshore Date: Fri, 23 Mar 2018 11:33:10 +0000 Subject: [PATCH] Api requests can throw a ApiUsageException, and that should be expected Change-Id: I4aa6e7511747c0d811e2e617b88e681a6eda875d --- tests/phpunit/includes/api/ApiTestCase.php | 1 + 1 file changed, 1 insertion(+) 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, -- 2.20.1