SpecialPageAliasTest: Fix arguments of Language::fetchLanguageNames
authorFomafix <fomafix@googlemail.com>
Sun, 25 Feb 2018 12:19:15 +0000 (13:19 +0100)
committerFomafix <fomafix@googlemail.com>
Sun, 25 Feb 2018 12:31:43 +0000 (13:31 +0100)
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

tests/phpunit/languages/SpecialPageAliasTest.php

index 4a7fed2..0bb6a4d 100644 (file)
@@ -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 = [];