From: umherirrender Date: Mon, 7 Dec 2015 16:26:16 +0000 (+0100) Subject: Fix some language depending phpunit tests by using MediaWikiLangTestCase X-Git-Tag: 1.31.0-rc.0~8761^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=e386a46eb352e3dd2e07a37f06b5303c7341eaf1;p=lhc%2Fweb%2Fwiklou.git Fix some language depending phpunit tests by using MediaWikiLangTestCase Some tests fails on wikis with $wgLanguageCode not = 'en', fix this by setting the correct language context. Change-Id: Ia72017df59d8beb5c508832584b2431ffab0f77f --- diff --git a/tests/phpunit/includes/api/ApiErrorFormatterTest.php b/tests/phpunit/includes/api/ApiErrorFormatterTest.php index 3e5f3555c6..a08a86ef3a 100644 --- a/tests/phpunit/includes/api/ApiErrorFormatterTest.php +++ b/tests/phpunit/includes/api/ApiErrorFormatterTest.php @@ -3,7 +3,7 @@ /** * @group API */ -class ApiErrorFormatterTest extends MediaWikiTestCase { +class ApiErrorFormatterTest extends MediaWikiLangTestCase { /** * @covers ApiErrorFormatter diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php b/tests/phpunit/includes/content/CssContentHandlerTest.php index 58735bcefb..4da82745c5 100644 --- a/tests/phpunit/includes/content/CssContentHandlerTest.php +++ b/tests/phpunit/includes/content/CssContentHandlerTest.php @@ -1,6 +1,6 @@