dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Html: Unblacklist HTML5 form validation attributes"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
ExtraParserTest.php
diff --git
a/tests/phpunit/includes/ExtraParserTest.php
b/tests/phpunit/includes/ExtraParserTest.php
index
78e71ea
..
5dd4f7a
100644
(file)
--- a/
tests/phpunit/includes/ExtraParserTest.php
+++ b/
tests/phpunit/includes/ExtraParserTest.php
@@
-18,12
+18,12
@@
class ExtraParserTest extends MediaWikiTestCase {
$contLang = Language::factory( 'en' );
$this->setMwGlobals( [
'wgShowDBErrorBacktrace' => true,
$contLang = Language::factory( 'en' );
$this->setMwGlobals( [
'wgShowDBErrorBacktrace' => true,
- 'wgLanguageCode' => 'en',
- 'wgContLang' => $contLang,
- 'wgLang' => Language::factory( 'en' ),
'wgCleanSignatures' => true,
] );
'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->parser = new Parser;
$this->options = ParserOptions::newFromUserAndLang( new User, $contLang );
$this->options->setTemplateCallback( [ __CLASS__, 'statelessFetchTemplate' ] );
$this->parser = new Parser;