diff options
Diffstat (limited to 'tests/phpunit/includes/cache/MessageCacheTest.php')
-rw-r--r-- | tests/phpunit/includes/cache/MessageCacheTest.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/phpunit/includes/cache/MessageCacheTest.php b/tests/phpunit/includes/cache/MessageCacheTest.php index ddd74e391924..38cc863a4bc5 100644 --- a/tests/phpunit/includes/cache/MessageCacheTest.php +++ b/tests/phpunit/includes/cache/MessageCacheTest.php @@ -19,14 +19,8 @@ class MessageCacheTest extends MediaWikiLangTestCase { protected function configureLanguages() { // for the test, we need the content language to be anything but English, // let's choose e.g. German (de) - $langCode = 'de'; - $langObj = Language::factory( $langCode ); - - $this->setMwGlobals( [ - 'wgLanguageCode' => $langCode, - 'wgLang' => $langObj, - 'wgContLang' => $langObj, - ] ); + $this->setUserLang( 'de' ); + $this->setContentLang( 'de' ); } function addDBData() { |