mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-26 09:15:23 +00:00
29452c9bef
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
12 lines
292 B
PHP
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',
|
|
);
|
|
}
|
|
}
|