From e386a46eb352e3dd2e07a37f06b5303c7341eaf1 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 7 Dec 2015 17:26:16 +0100 Subject: [PATCH] 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 --- tests/phpunit/includes/api/ApiErrorFormatterTest.php | 2 +- tests/phpunit/includes/content/CssContentHandlerTest.php | 2 +- tests/phpunit/includes/content/JavaScriptContentHandlerTest.php | 2 +- tests/phpunit/includes/deferred/LinksUpdateTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 @@