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