jenkins-bot has submitted this change and it was merged.

Change subject: Added the $wgPFEnableStringFunctions = true in ParserFunctions 
tests
......................................................................


Added the $wgPFEnableStringFunctions = true in ParserFunctions tests

Jenkins bot unit tests without setting $wgPFEnableStringFunctions = true;
This triggers all the parser tests for string functions to be skipped

Bug: 61410
Change-Id: I69636d656af851beeed6fd5353e4a01c1ca5c608
---
M ParserFunctions.php
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ParserFunctions.php b/ParserFunctions.php
index 53153b6..d7f9c6c 100644
--- a/ParserFunctions.php
+++ b/ParserFunctions.php
@@ -29,6 +29,16 @@
  */
 $wgPFEnableStringFunctions = false;
 
+/**
+  * Enable string functions, when running Wikimedia Jenkins unit tests.
+  *
+  * Running Jenkins unit tests without setting $wgPFEnableStringFunctions = 
true;
+  * will cause all the parser tests for string functions to be skipped.
+  */
+if ( $wgWikimediaJenkinsCI === true ) {
+       $wgPFEnableStringFunctions = true ;
+}
+
 /** REGISTRATION */
 $wgExtensionCredits['parserhook'][] = array(
        'path' => __FILE__,

-- 
To view, visit https://gerrit.wikimedia.org/r/113945
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I69636d656af851beeed6fd5353e4a01c1ca5c608
Gerrit-PatchSet: 6
Gerrit-Project: mediawiki/extensions/ParserFunctions
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to