X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMessageTest.php;h=d75c0e54107c3818616ce48ba7ce953f18ad18d1;hb=733704ed8248f71dfb982d22799104a976d1ada4;hp=3e3d04aeede713f79885bef5b1aa6194ece75314;hpb=63d7f2ad1345453dc16f16493fc7e5524219cfb8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/MessageTest.php b/tests/phpunit/includes/MessageTest.php index 3e3d04aeed..d75c0e5410 100644 --- a/tests/phpunit/includes/MessageTest.php +++ b/tests/phpunit/includes/MessageTest.php @@ -1,6 +1,6 @@ setMwGlobals( 'wgRawHtml', true ); // We have to reset the core hook registration. // to register the html hook MessageCache::destroyInstance(); $this->setMwGlobals( 'wgParser', - ObjectFactory::constructClassInstance( $wgParserConf['class'], [ $wgParserConf ] ) - ); + MediaWikiServices::getInstance()->getParserFactory()->create() ); $msg = new RawMessage( '' ); $txt = '<html> tags cannot be' .