X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMessageTest.php;h=e745960a45d3307c760c29ab11de5e1cfb2d4bc3;hb=8f1d9e171891a5f1613ae4819dbb140261333f83;hp=d75c0e54107c3818616ce48ba7ce953f18ad18d1;hpb=7bf08b18758e314e725f9bf3855164595d257eb2;p=lhc%2Fweb%2Fwiklou.git
diff --git a/tests/phpunit/includes/MessageTest.php b/tests/phpunit/includes/MessageTest.php
index d75c0e5410..e745960a45 100644
--- a/tests/phpunit/includes/MessageTest.php
+++ b/tests/phpunit/includes/MessageTest.php
@@ -1,6 +1,5 @@
assertSame( 'example &', $msg->escaped() );
}
+ /**
+ * @covers CoreTagHooks::html
+ */
public function testRawHtmlInMsg() {
$this->setMwGlobals( 'wgRawHtml', true );
// We have to reset the core hook registration.
// to register the html hook
MessageCache::destroyInstance();
- $this->setMwGlobals( 'wgParser',
- MediaWikiServices::getInstance()->getParserFactory()->create() );
+ $this->overrideMwServices();
$msg = new RawMessage( '' );
$txt = '<html> tags cannot be' .