Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/102376
Change subject: Don't run OutputPageParserOutput client hook during tests ...................................................................... Don't run OutputPageParserOutput client hook during tests this sometimes interferes with other tests when something gets parsed. Change-Id: Ie36ca2e6397b9fc7cd3e87d1445743323a3b8a7c --- M client/WikibaseClient.hooks.php 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/76/102376/1 diff --git a/client/WikibaseClient.hooks.php b/client/WikibaseClient.hooks.php index 0e6b43d..8daaa2a 100644 --- a/client/WikibaseClient.hooks.php +++ b/client/WikibaseClient.hooks.php @@ -498,6 +498,12 @@ * @return bool */ public static function onOutputPageParserOutput( OutputPage &$out, ParserOutput $pout ) { + // LangLinkHandler used here interferes with any test that parses + // something, like a page or a message + if ( defined( 'MW_PHPUNIT_TEST' ) ) { + return true; + } + $langLinkHandler = new LangLinkHandler( Settings::get( 'siteGlobalID' ), Settings::get( 'namespaces' ), -- To view, visit https://gerrit.wikimedia.org/r/102376 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie36ca2e6397b9fc7cd3e87d1445743323a3b8a7c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits