mediawiki-extensions-Scribunto/tests/engines/LuaCommon/LanguageLibraryTest.php
Brad Jorsch 29452c9bef mw.language: Fix exceptions and add tests
Various methods are throwing exceptions when passed invalid language
codes. Those need to be caught.

And we should really add unit tests for the mw.language library, too.
Doing so exposed another bug (in lang:gender), which is also fixed here.

Bug: 62242
Change-Id: Ib7d257cbb1ce179c510273526910d6ac5f3cac5d
2014-03-09 02:56:06 +00:00

12 lines
292 B
PHP

<?php
class Scribunto_LuaLanguageLibraryTests extends Scribunto_LuaEngineTestBase {
protected static $moduleName = 'LanguageLibraryTests';
function getTestModules() {
return parent::getTestModules() + array(
'LanguageLibraryTests' => __DIR__ . '/LanguageLibraryTests.lua',
);
}
}