Api requests can throw a ApiUsageException, and that should be expected
authoraddshore <adamshorland@gmail.com>
Fri, 23 Mar 2018 11:33:10 +0000 (11:33 +0000)
committerAddshore <addshorewiki@gmail.com>
Thu, 5 Apr 2018 08:41:32 +0000 (08:41 +0000)
Change-Id: I4aa6e7511747c0d811e2e617b88e681a6eda875d

tests/phpunit/includes/api/ApiTestCase.php

index f1ff947..7ecb729 100644 (file)
@@ -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,