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
$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 );