summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Babel/tests/phpunit/BabelLanguageCodesTest.php')
-rw-r--r--MLEB/Babel/tests/phpunit/BabelLanguageCodesTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/MLEB/Babel/tests/phpunit/BabelLanguageCodesTest.php b/MLEB/Babel/tests/phpunit/BabelLanguageCodesTest.php
index 92f90149..1789e292 100644
--- a/MLEB/Babel/tests/phpunit/BabelLanguageCodesTest.php
+++ b/MLEB/Babel/tests/phpunit/BabelLanguageCodesTest.php
@@ -3,6 +3,7 @@
namespace Babel\Tests;
use BabelLanguageCodes;
+use LanguageCode;
/**
* @covers BabelLanguageCodes
@@ -31,13 +32,12 @@ class BabelLanguageCodesTest extends \PHPUnit\Framework\TestCase {
[ 'be-x-old', 'be-tarask' ],
];
// True BCP 47 normalization was added in MW 1.32
- if ( BabelLanguageCodes::bcp47( 'simple' ) === 'en-simple' ) {
+ if ( LanguageCode::bcp47( 'simple' ) === 'en-simple' ) {
// ensure BCP 47-compliant codes are mapped to MediaWiki's
// nonstandard internal codes
$testData = array_merge( $testData, [
[ 'en-simple', 'simple' ],
[ 'cbk', 'cbk-zam' ],
- [ 'nrf', 'nrm' ],
] );
}
return $testData;
@@ -58,6 +58,7 @@ class BabelLanguageCodesTest extends \PHPUnit\Framework\TestCase {
[ 'eng', null, 'English' ],
[ 'en-gb', null, 'British English' ],
[ 'de', null, 'Deutsch' ],
+ [ 'aaq', null, 'Eastern Abnaki' ],
];
}