From 7701eec0cc9d58962ed8862ab57fd6d58d9fc1aa Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 15 Oct 2014 16:51:43 +0200 Subject: [PATCH] Avoid running of hooks when running MWTimestampTest Bug: 55886 Change-Id: I91e1dfeb1cddb158318ac178264e5acaf0a16215 --- tests/phpunit/includes/MWTimestampTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/includes/MWTimestampTest.php b/tests/phpunit/includes/MWTimestampTest.php index dcb985633c..05c1a661dc 100644 --- a/tests/phpunit/includes/MWTimestampTest.php +++ b/tests/phpunit/includes/MWTimestampTest.php @@ -8,6 +8,9 @@ class MWTimestampTest extends MediaWikiLangTestCase { protected function setUp() { parent::setUp(); + // Avoid 'GetHumanTimestamp' hook and others + $this->setMwGlobals( 'wgHooks', array() ); + RequestContext::getMain()->setLanguage( Language::factory( 'en' ) ); } -- 2.20.1