From: Fomafix Date: Sun, 25 Feb 2018 12:19:15 +0000 (+0100) Subject: SpecialPageAliasTest: Fix arguments of Language::fetchLanguageNames X-Git-Tag: 1.31.0-rc.0~508^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=7855ec8385acccb9df10e7c15bb534dfbe52d4f0;p=lhc%2Fweb%2Fwiklou.git SpecialPageAliasTest: Fix arguments of Language::fetchLanguageNames Language::fetchLanguageNames( 'mwfile' ) means all languages with the default filter 'mw' and names in the language 'mwfile'. Language::fetchLanguageNames( null, 'mwfile' ) means language all languages with the filter 'mwfile' and names in the default language. This change removes the test for the language codes: * aa * als * bat-smg * be-x-old * cho * fiu-vro * ho * hz * kj * kr * mh * mus * ng * no * rn * roa-rup * shi-latn * shi-tfng * simple * tum * uz-cyrl * uz-latn * zh-classical * zh-min-nan * zh-yue Change-Id: I7266a67e37862daf863d1565d84cfeebaf5cb680 --- diff --git a/tests/phpunit/languages/SpecialPageAliasTest.php b/tests/phpunit/languages/SpecialPageAliasTest.php index 4a7fed2a06..0bb6a4d293 100644 --- a/tests/phpunit/languages/SpecialPageAliasTest.php +++ b/tests/phpunit/languages/SpecialPageAliasTest.php @@ -25,7 +25,7 @@ class SpecialPageAliasTest extends MediaWikiTestCase { } public function validSpecialPageAliasesProvider() { - $codes = array_keys( Language::fetchLanguageNames( 'mwfile' ) ); + $codes = array_keys( Language::fetchLanguageNames( null, 'mwfile' ) ); $data = [];