Api requests can throw a ApiUsageException, and that should be expected
[lhc/web/wiklou.git] / tests / phpunit / includes / api / ApiTestCase.php
index 6b299c9..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,
@@ -218,8 +219,11 @@ abstract class ApiTestCase extends MediaWikiLangTestCase {
                );
        }
 
+       /**
+        * @coversNothing
+        */
        public function testApiTestGroup() {
-               $groups = PHPUnit_Util_Test::getGroups( get_class( $this ) );
+               $groups = PHPUnit_Util_Test::getGroups( static::class );
                $constraint = PHPUnit_Framework_Assert::logicalOr(
                        $this->contains( 'medium' ),
                        $this->contains( 'large' )