aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/cache/MessageCacheTest.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2016-03-09 16:47:58 +0000
committerTimo Tijhof <krinklemail@gmail.com>2016-03-09 16:55:50 +0000
commitecb47bfb8f729dd26c0d47b0ddae7761f32dda99 (patch)
tree4173d1ef87ff892f7804faffac9ca6312af2bd8b /tests/phpunit/includes/cache/MessageCacheTest.php
parent31df0b56dd51d95445d4d7baebdd6d3581640e1c (diff)
downloadmediawikicore-ecb47bfb8f729dd26c0d47b0ddae7761f32dda99.tar.gz
mediawikicore-ecb47bfb8f729dd26c0d47b0ddae7761f32dda99.zip
phpunit: Abstract user-lang override in MediaWikiTestCase
Removed redundant set up in these classes (same as their paren class MediaWikiLangTestCase does already). * BlockTest * ExportTest * MWTimestampTest * TitlePermissionTest Change-Id: I28d18cb797bb249981727b02dffce4f0d8682b02
Diffstat (limited to 'tests/phpunit/includes/cache/MessageCacheTest.php')
-rw-r--r--tests/phpunit/includes/cache/MessageCacheTest.php10
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() {