jenkins-bot has submitted this change and it was merged.
Change subject: Unbreak tests following MediaWiki core change
......................................................................
Unbreak tests following MediaWiki core change
4555d1b482816 made it so that the RequestContext instance now holds
$wgRequest instead of making it global state. This means using a new
RequestContext object will not use the same request as $wgRequest.
Work around this in tests by using RequestContext::getMain().
Change-Id: Ib11da7a500589e267543a69600a5a35d60294843
---
M tests/content/MassMessageContentHandlerTest.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Wctaiwan: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/content/MassMessageContentHandlerTest.php
b/tests/content/MassMessageContentHandlerTest.php
index fae0d52..dd5d2d0 100644
--- a/tests/content/MassMessageContentHandlerTest.php
+++ b/tests/content/MassMessageContentHandlerTest.php
@@ -41,7 +41,7 @@
'description',
$targets,
'summary',
- new RequestContext
+ RequestContext::getMain()
);
$this->assertTrue( $result->isGood() );
$rev = Revision::newFromTitle( $title );
--
To view, visit https://gerrit.wikimedia.org/r/263209
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib11da7a500589e267543a69600a5a35d60294843
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Wctaiwan <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits