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
Use setContentLang() instead of setMwGlobals()
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
title
/
SubpageImportTitleFactoryTest.php
diff --git
a/tests/phpunit/includes/title/SubpageImportTitleFactoryTest.php
b/tests/phpunit/includes/title/SubpageImportTitleFactoryTest.php
index
008cf5d
..
7422bdb
100644
(file)
--- a/
tests/phpunit/includes/title/SubpageImportTitleFactoryTest.php
+++ b/
tests/phpunit/includes/title/SubpageImportTitleFactoryTest.php
@@
-29,9
+29,8
@@
class SubpageImportTitleFactoryTest extends MediaWikiTestCase {
protected function setUp() {
parent::setUp();
+ $this->setContentLang( 'en' );
$this->setMwGlobals( [
- 'wgLanguageCode' => 'en',
- 'wgContLang' => Language::factory( 'en' ),
'wgNamespacesWithSubpages' => [ 0 => false, 2 => true ],
] );
}