$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 );
$formatter->setContext( $this->context );
$formatter->setShowUserToolLinks( false );
- $paramsWithoutTools = $formatter->getMessageParameters();
+ $paramsWithoutTools = $formatter->getMessageParametersForTesting();
unset( $formatter->parsedParameters );
$formatter->setShowUserToolLinks( true );
- $paramsWithTools = $formatter->getMessageParameters();
+ $paramsWithTools = $formatter->getMessageParametersForTesting();
$userLink = Linker::userLink(
$this->user->getId(),