X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FExtraParserTest.php;h=a4e3bb94935c4840d6629decb16d1f202228bcfa;hb=a0947c9507065a83afe52b078f0f6d1c6163875e;hp=78e71ea46796442d559456d0c6f4fdbbf6d29ccd;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/ExtraParserTest.php b/tests/phpunit/includes/ExtraParserTest.php index 78e71ea467..a4e3bb9493 100644 --- a/tests/phpunit/includes/ExtraParserTest.php +++ b/tests/phpunit/includes/ExtraParserTest.php @@ -18,21 +18,22 @@ class ExtraParserTest extends MediaWikiTestCase { $contLang = Language::factory( 'en' ); $this->setMwGlobals( [ 'wgShowDBErrorBacktrace' => true, - 'wgLanguageCode' => 'en', - 'wgContLang' => $contLang, - 'wgLang' => Language::factory( 'en' ), 'wgCleanSignatures' => true, ] ); + $this->setUserLang( 'en' ); + $this->setContentLang( $contLang ); + // FIXME: This test should pass without setting global content language $this->options = ParserOptions::newFromUserAndLang( new User, $contLang ); $this->options->setTemplateCallback( [ __CLASS__, 'statelessFetchTemplate' ] ); + $this->options->setWrapOutputClass( false ); $this->parser = new Parser; MagicWord::clearCache(); } /** - * @see Bug 8689 + * @see T10689 * @covers Parser::parse */ public function testLongNumericLinesDontKillTheParser() { @@ -40,6 +41,7 @@ class ExtraParserTest extends MediaWikiTestCase { $title = Title::newFromText( 'Unit test' ); $options = ParserOptions::newFromUser( new User() ); + $options->setWrapOutputClass( false ); $this->assertEquals( "

$longLine

", $this->parser->parse( $longLine, $title, $options )->getText() ); }