From: umherirrender Date: Wed, 15 Oct 2014 14:51:43 +0000 (+0200) Subject: Avoid running of hooks when running MWTimestampTest X-Git-Tag: 1.31.0-rc.0~13499^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/Dunav?a=commitdiff_plain;h=7701eec0cc9d58962ed8862ab57fd6d58d9fc1aa;p=lhc%2Fweb%2Fwiklou.git Avoid running of hooks when running MWTimestampTest Bug: 55886 Change-Id: I91e1dfeb1cddb158318ac178264e5acaf0a16215 --- 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' ) ); }