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
Mass conversion of $wgContLang to service
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
parser
/
ParserPreloadTest.php
diff --git
a/tests/phpunit/includes/parser/ParserPreloadTest.php
b/tests/phpunit/includes/parser/ParserPreloadTest.php
index
7707395
..
560b921
100644
(file)
--- a/
tests/phpunit/includes/parser/ParserPreloadTest.php
+++ b/
tests/phpunit/includes/parser/ParserPreloadTest.php
@@
-1,4
+1,7
@@
<?php
<?php
+
+use MediaWiki\MediaWikiServices;
+
/**
* Basic tests for Parser::getPreloadText
* @author Antoine Musso
/**
* Basic tests for Parser::getPreloadText
* @author Antoine Musso
@@
-42,10
+45,9
@@
class ParserPreloadTest extends MediaWikiTestCase {
private $title;
protected function setUp() {
private $title;
protected function setUp() {
- global $wgContLang;
-
parent::setUp();
parent::setUp();
- $this->testParserOptions = ParserOptions::newFromUserAndLang( new User, $wgContLang );
+ $this->testParserOptions = ParserOptions::newFromUserAndLang( new User,
+ MediaWikiServices::getInstance()->getContentLanguage() );
$this->testParser = new Parser();
$this->testParser->Options( $this->testParserOptions );
$this->testParser = new Parser();
$this->testParser->Options( $this->testParserOptions );