X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2FMediaWikiLangTestCase.php;h=4b0edb13f18d4f36afe3bbab10b8f1b0dc633c86;hp=fd308b2d9584697045edbf1ae2a46dec617b69c6;hb=733704ed8248f71dfb982d22799104a976d1ada4;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06 diff --git a/tests/phpunit/MediaWikiLangTestCase.php b/tests/phpunit/MediaWikiLangTestCase.php index fd308b2d95..4b0edb13f1 100644 --- a/tests/phpunit/MediaWikiLangTestCase.php +++ b/tests/phpunit/MediaWikiLangTestCase.php @@ -1,16 +1,19 @@ getCode() ) { + $contLang = MediaWikiServices::getInstance()->getContentLanguage(); + if ( $wgLanguageCode != $contLang->getCode() ) { throw new MWException( "Error in MediaWikiLangTestCase::setUp(): " . - "\$wgLanguageCode ('$wgLanguageCode') is different from " . - "\$wgContLang->getCode() (" . $wgContLang->getCode() . ")" ); + "\$wgLanguageCode ('$wgLanguageCode') is different from content language code (" . + $contLang->getCode() . ")" ); } parent::setUp();