diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2011-06-15 20:51:17 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2011-06-15 20:51:17 +0000 |
commit | 1cc4bae5f87414c2ac24aa0e4ca185df2148e63c (patch) | |
tree | 5787706657a0adb4200deaa03affd55fcafe19eb /tests/phpunit | |
parent | 15445510ff6cffc61e95406a83b29181cecb9ffd (diff) | |
download | mediawikicore-1cc4bae5f87414c2ac24aa0e4ca185df2148e63c.tar.gz mediawikicore-1cc4bae5f87414c2ac24aa0e4ca185df2148e63c.zip |
Followup to r90090 -- thou shalt add parent:: calls to both overridden tearDown *and* overridden setUp ()
Had been resulting in fatal errors when running TimeAdjustTest, due to trying to use an old $wgContLang value that had never gotten saved properly because the parent class setUp() was not called.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90150
Diffstat (limited to 'tests/phpunit')
-rw-r--r-- | tests/phpunit/includes/TimeAdjustTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/phpunit/includes/TimeAdjustTest.php b/tests/phpunit/includes/TimeAdjustTest.php index 3116c19d8e47..cd027c5b8417 100644 --- a/tests/phpunit/includes/TimeAdjustTest.php +++ b/tests/phpunit/includes/TimeAdjustTest.php @@ -4,6 +4,7 @@ class TimeAdjustTest extends MediaWikiLangTestCase { static $offset; public function setUp() { + parent::setUp(); global $wgLocalTZoffset; self::$offset = $wgLocalTZoffset; |