diff options
Diffstat (limited to 'MLEB/Translate/tests/phpunit/utils/MessageGroupStatsTest.php')
-rw-r--r-- | MLEB/Translate/tests/phpunit/utils/MessageGroupStatsTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MLEB/Translate/tests/phpunit/utils/MessageGroupStatsTest.php b/MLEB/Translate/tests/phpunit/utils/MessageGroupStatsTest.php index b26299d9..ba4b2c2b 100644 --- a/MLEB/Translate/tests/phpunit/utils/MessageGroupStatsTest.php +++ b/MLEB/Translate/tests/phpunit/utils/MessageGroupStatsTest.php @@ -11,7 +11,7 @@ class MessageGroupStatsTest extends MediaWikiIntegrationTestCase { $this->setTemporaryHook( 'TranslatePostInitGroups', - function ( &$list ) { + static function ( &$list ) { $exampleMessageGroup = new WikiMessageGroup( 'theid', 'thesource' ); $exampleMessageGroup->setLabel( 'thelabel' ); // Example $exampleMessageGroup->setNamespace( 5 ); // Example @@ -20,7 +20,7 @@ class MessageGroupStatsTest extends MediaWikiIntegrationTestCase { ); $mg = MessageGroups::singleton(); - $mg->setCache( new WANObjectCache( [ 'cache' => wfGetCache( 'hash' ) ] ) ); + $mg->setCache( new WANObjectCache( [ 'cache' => new HashBagOStuff() ] ) ); $mg->recache(); } |