Fix some language depending phpunit tests by using MediaWikiLangTestCase
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 7 Dec 2015 16:26:16 +0000 (17:26 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 7 Dec 2015 16:26:16 +0000 (17:26 +0100)
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
tests/phpunit/includes/content/CssContentHandlerTest.php
tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
tests/phpunit/includes/deferred/LinksUpdateTest.php

index 3e5f355..a08a86e 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * @group API
  */
-class ApiErrorFormatterTest extends MediaWikiTestCase {
+class ApiErrorFormatterTest extends MediaWikiLangTestCase {
 
        /**
         * @covers ApiErrorFormatter
index 58735bc..4da8274 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class CssContentHandlerTest extends MediaWikiTestCase {
+class CssContentHandlerTest extends MediaWikiLangTestCase {
 
        /**
         * @dataProvider provideMakeRedirectContent
index 69fc9af..d9487a0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class JavaScriptContentHandlerTest extends MediaWikiTestCase {
+class JavaScriptContentHandlerTest extends MediaWikiLangTestCase {
 
        /**
         * @dataProvider provideMakeRedirectContent
index c8b4bda..f8251ec 100644 (file)
@@ -5,7 +5,7 @@
  * @group Database
  * ^--- make sure temporary tables are used.
  */
-class LinksUpdateTest extends MediaWikiTestCase {
+class LinksUpdateTest extends MediaWikiLangTestCase {
 
        function __construct( $name = null, array $data = array(), $dataName = '' ) {
                parent::__construct( $name, $data, $dataName );