Fix and re-enable ApiQueryLanguageinfoTest
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Fri, 7 Jun 2019 13:25:14 +0000 (15:25 +0200)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Wed, 12 Jun 2019 15:36:40 +0000 (17:36 +0200)
Anomie discovered (T225244#5250241) that we need to clear the language
cache here; with that, the test should work again, so re-enable it.

Bug: T225244
Change-Id: I67e8446a4ff64d12ab3a3a52a432a728d4139a69

tests/phpunit/includes/api/ApiQueryLanguageinfoTest.php

index f4bab02..6bbdd3b 100644 (file)
@@ -1,10 +1,8 @@
 <?php
 
 /**
- * FIXME Temporary disabled per T225244
  * @group API
  * @group medium
- * @group Broken
  *
  * @covers ApiQueryLanguageinfo
  */
@@ -27,6 +25,7 @@ class ApiQueryLanguageinfoTest extends ApiTestCase {
                                }
                        }
                );
+               Language::clearCaches();
        }
 
        private function doQuery( array $params, $microtimeFunction = null ): array {