Avoid running of hooks when running MWTimestampTest
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 15 Oct 2014 14:51:43 +0000 (16:51 +0200)
committerAddshore <addshorewiki@gmail.com>
Thu, 23 Oct 2014 17:50:36 +0000 (17:50 +0000)
Bug: 55886
Change-Id: I91e1dfeb1cddb158318ac178264e5acaf0a16215

tests/phpunit/includes/MWTimestampTest.php

index dcb9856..05c1a66 100644 (file)
@@ -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' ) );
        }