From 3b1ce4902342f7b1f50dc44a487884f495159bbc Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 20 Dec 2012 14:55:40 -0500 Subject: [PATCH] (bug 43307) L10n recache needed in LogFormatterTest::tearDown LogFormatterTest replaces all extension localization files in $wgExtensionMessagesFiles with its own, and correctly restores this variable. But it neglects to refresh the localization cache after restoring the variable, so subsequent extension tests are missing their localization. Change-Id: I74809af47830a5e09c36f8fec20c9c65b1e3aa17 --- tests/phpunit/includes/logging/LogFormatterTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/phpunit/includes/logging/LogFormatterTest.php b/tests/phpunit/includes/logging/LogFormatterTest.php index d6cbbee26d..2fa2cc030a 100755 --- a/tests/phpunit/includes/logging/LogFormatterTest.php +++ b/tests/phpunit/includes/logging/LogFormatterTest.php @@ -43,6 +43,13 @@ class LogFormatterTest extends MediaWikiLangTestCase { $this->context->setLanguage( $wgLang ); } + protected function tearDown() { + parent::tearDown(); + + global $wgLang; + $wgLang->getLocalisationCache()->recache( $wgLang->getCode() ); + } + public function newLogEntry( $action, $params ) { $logEntry = new ManualLogEntry( 'phpunit', $action ); $logEntry->setPerformer( $this->user ); -- 2.20.1