summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2022-09-27 18:53:03 -0400
committerBrian Evans <grknight@gentoo.org>2022-09-27 19:02:02 -0400
commit5ca8d30155e11d97b20f79acec40632c2e06fcd5 (patch)
tree7531fb116791f8328c0bb0cabe42265ca67e6df9 /MLEB/Translate/tests/phpunit/api/ApiQueryMessageCollectionTest.php
parentMerge branch 'master' into wikitest (diff)
downloadextensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.tar.gz
extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.tar.bz2
extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.zip
Update MLEB to 2021.12v1.35.2
This is the final version for MW 1.35 Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/tests/phpunit/api/ApiQueryMessageCollectionTest.php')
-rw-r--r--MLEB/Translate/tests/phpunit/api/ApiQueryMessageCollectionTest.php4
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();
}