X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMessageTest.php;h=e745960a45d3307c760c29ab11de5e1cfb2d4bc3;hb=8cfa62d8376bdcde687dad1837f08bac6f82f09e;hp=d75c0e54107c3818616ce48ba7ce953f18ad18d1;hpb=be74c82f9a19f9fc5a0c771ec627b9aa9746089e;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' .