diff options
author | Aryeh Gregor <ayg@aryeh.name> | 2018-07-29 15:24:54 +0300 |
---|---|---|
committer | Kunal Mehta <legoktm@member.fsf.org> | 2018-08-11 22:44:29 -0600 |
commit | 90d4f56fe46140f9e97e2fa72698f98b57447fe5 (patch) | |
tree | aafd71518a89d31a647ae7d4340f1003bc33d3a0 /tests/phpunit/includes/content/WikitextContentHandlerTest.php | |
parent | 8f8851325ece1be57c7cd896db7f65b34fee7a88 (diff) | |
download | mediawikicore-90d4f56fe46140f9e97e2fa72698f98b57447fe5.tar.gz mediawikicore-90d4f56fe46140f9e97e2fa72698f98b57447fe5.zip |
Mass conversion of $wgContLang to service
Brought to you by vim macros.
Bug: T200246
Change-Id: I79e919f4553e3bd3eb714073fed7a43051b4fb2a
Diffstat (limited to 'tests/phpunit/includes/content/WikitextContentHandlerTest.php')
-rw-r--r-- | tests/phpunit/includes/content/WikitextContentHandlerTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/content/WikitextContentHandlerTest.php b/tests/phpunit/includes/content/WikitextContentHandlerTest.php index 4bb1ed250186..b4b2948ba8e5 100644 --- a/tests/phpunit/includes/content/WikitextContentHandlerTest.php +++ b/tests/phpunit/includes/content/WikitextContentHandlerTest.php @@ -80,8 +80,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase { * @covers WikitextContentHandler::makeRedirectContent */ public function testMakeRedirectContent( $title, $expected ) { - global $wgContLang; - $wgContLang->resetNamespaces(); + MediaWikiServices::getInstance()->getContentLanguage()->resetNamespaces(); MediaWikiServices::getInstance()->resetServiceForTesting( 'MagicWordFactory' ); |