*/
/** Tests for MediaWiki languages/classes/LanguageMo.php */
-class LanguageMoTest extends MediaWikiTestCase {
- private $lang;
-
- function setUp() {
- $this->lang = Language::factory( 'mo' );
- }
- function tearDown() {
- unset( $this->lang );
- }
+class LanguageMoTest extends LanguageClassesTestCase {
/** @dataProvider providerPlural */
function testPlural( $result, $value ) {
$forms = array( 'one', 'few', 'other' );
- $this->assertEquals( $result, $this->lang->convertPlural( $value, $forms ) );
+ $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
}
function providerPlural() {