r90090 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90089‎ | r90090 | r90091 >
Date:21:21, 14 June 2011
Author:platonides
Status:ok
Tags:
Comment:
Thou shall call parent::tearDown(), MediaWikiLangTestCase child.
Follow up r87210. This has been hurting my tests for weeks.

Made TimeAdjustTest extend MediaWikiLangTestCase.
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/SampleTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/TimeAdjustTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/TimeAdjustTest.php
@@ -1,6 +1,6 @@
22 <?php
33
4 -class TimeAdjustTest extends MediaWikiTestCase {
 4+class TimeAdjustTest extends MediaWikiLangTestCase {
55 static $offset;
66
77 public function setUp() {
@@ -13,6 +13,7 @@
1414 public function tearDown() {
1515 global $wgLocalTZoffset;
1616 $wgLocalTZoffset = self::$offset;
 17+ parent::tearDown();
1718 }
1819
1920 # Test offset usage for a given language::userAdjust
Index: trunk/phase3/tests/phpunit/includes/SampleTest.php
@@ -15,6 +15,7 @@
1616 * Anything cleanup you need to do should go here.
1717 */
1818 function tearDown() {
 19+ parent::tearDown();
1920 }
2021
2122 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r90150Followup to r90090 -- thou shalt add parent:: calls to both overridden tearDo...brion20:51, 15 June 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87210Fix the old XmlTest.php test bug in the dateMenu() when the wiki is configure...platonides19:32, 1 May 2011

Status & tagging log