Make SideBarTest work with a Language other than English set.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 25 Jul 2011 17:17:21 +0000 (17:17 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 25 Jul 2011 17:17:21 +0000 (17:17 +0000)
Follow up r93050

tests/phpunit/skins/SideBarTest.php

index c53675b..914ea3a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class SideBarTest extends MediaWikiTestCase {
+class SideBarTest extends MediaWikiLangTestCase {
 
        /** A skin template, reinitialized before each test */
        private $skin;
@@ -8,7 +8,6 @@ class SideBarTest extends MediaWikiTestCase {
        private $messages;
 
        function __construct() {
-               $this->initMessagesHref();
                parent::__construct();
        }
 
@@ -32,9 +31,12 @@ class SideBarTest extends MediaWikiTestCase {
        }
 
        function setUp() {
+               parent::setUp();
+               $this->initMessagesHref();
                $this->skin = new SkinTemplate();
        }
        function tearDown() {
+               parent::tearDown();
                $this->skin = null;
        }