$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() {
$title = Title::newFromText( 'Unit test' );
$options = ParserOptions::newFromUser( new User() );
+ $options->setWrapOutputClass( false );
$this->assertEquals( "<p>$longLine</p>",
$this->parser->parse( $longLine, $title, $options )->getText() );
}