summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/WikiPageMessageGroupTest.php')
-rw-r--r--MLEB/Translate/tests/phpunit/WikiPageMessageGroupTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/MLEB/Translate/tests/phpunit/WikiPageMessageGroupTest.php b/MLEB/Translate/tests/phpunit/WikiPageMessageGroupTest.php
index ad57a29b..afaa50e8 100644
--- a/MLEB/Translate/tests/phpunit/WikiPageMessageGroupTest.php
+++ b/MLEB/Translate/tests/phpunit/WikiPageMessageGroupTest.php
@@ -14,7 +14,7 @@ class WikiPageMessageGroupTest extends MediaWikiIntegrationTestCase {
$this->setTemporaryHook(
'TranslatePostInitGroups',
- function ( &$list ) {
+ static function ( &$list ) {
$anotherPageMessageGroup = new WikiPageMessageGroup( 'anotherpageid', 'mypage' );
$anotherPageMessageGroup->setLabel( 'thelabel' ); // Example
$anotherPageMessageGroup->setNamespace( 5 ); // Example
@@ -28,7 +28,7 @@ class WikiPageMessageGroupTest extends MediaWikiIntegrationTestCase {
$this->setTemporaryHook( 'TranslateInitGroupLoaders', [] );
$mg = MessageGroups::singleton();
- $mg->setCache( new WANObjectCache( [ 'cache' => wfGetCache( 'hash' ) ] ) );
+ $mg->setCache( new WANObjectCache( [ 'cache' => new HashBagOStuff() ] ) );
$mg->recache();
}