r93070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93069‎ | r93070 | r93071 >
Date:17:17, 25 July 2011
Author:platonides
Status:ok
Tags:
Comment:
Make SideBarTest work with a Language other than English set.
Follow up r93050
Modified paths:
  • /trunk/phase3/tests/phpunit/skins/SideBarTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/skins/SideBarTest.php
@@ -1,6 +1,6 @@
22 <?php
33
4 -class SideBarTest extends MediaWikiTestCase {
 4+class SideBarTest extends MediaWikiLangTestCase {
55
66 /** A skin template, reinitialized before each test */
77 private $skin;
@@ -8,7 +8,6 @@
99 private $messages;
1010
1111 function __construct() {
12 - $this->initMessagesHref();
1312 parent::__construct();
1413 }
1514
@@ -32,9 +31,12 @@
3332 }
3433
3534 function setUp() {
 35+ parent::setUp();
 36+ $this->initMessagesHref();
3637 $this->skin = new SkinTemplate();
3738 }
3839 function tearDown() {
 40+ parent::tearDown();
3941 $this->skin = null;
4042 }
4143

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93050Test for external links in the sidebar...hashar15:42, 25 July 2011

Status & tagging log