Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/166751
Change subject: Avoid running of hooks when running MWTimestampTest
......................................................................
Avoid running of hooks when running MWTimestampTest
Bug: 55886
Change-Id: I91e1dfeb1cddb158318ac178264e5acaf0a16215
---
M tests/phpunit/includes/MWTimestampTest.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/51/166751/1
diff --git a/tests/phpunit/includes/MWTimestampTest.php
b/tests/phpunit/includes/MWTimestampTest.php
index dcb9856..05c1a66 100644
--- a/tests/phpunit/includes/MWTimestampTest.php
+++ b/tests/phpunit/includes/MWTimestampTest.php
@@ -8,6 +8,9 @@
protected function setUp() {
parent::setUp();
+ // Avoid 'GetHumanTimestamp' hook and others
+ $this->setMwGlobals( 'wgHooks', array() );
+
RequestContext::getMain()->setLanguage( Language::factory( 'en'
) );
}
--
To view, visit https://gerrit.wikimedia.org/r/166751
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I91e1dfeb1cddb158318ac178264e5acaf0a16215
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits