summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/SpecialPagesTest.php')
-rw-r--r--MLEB/Translate/tests/phpunit/SpecialPagesTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/MLEB/Translate/tests/phpunit/SpecialPagesTest.php b/MLEB/Translate/tests/phpunit/SpecialPagesTest.php
index 4a412da8..e4bf26ef 100644
--- a/MLEB/Translate/tests/phpunit/SpecialPagesTest.php
+++ b/MLEB/Translate/tests/phpunit/SpecialPagesTest.php
@@ -26,7 +26,7 @@ class SpecialPagesTest extends MediaWikiTestCase {
$wgHooks['TranslatePostInitGroups'] = [];
$mg = MessageGroups::singleton();
- $mg->setCache( wfGetCache( 'hash' ) );
+ $mg->setCache( new WANObjectCache( [ 'cache' => wfGetCache( 'hash' ) ] ) );
$mg->recache();
MessageIndex::setInstance( new HashMessageIndex() );
@@ -69,7 +69,7 @@ class SpecialPagesTest extends MediaWikiTestCase {
$this->assertTrue( true, "Special page $name was executed successfully with anon user" );
- $user = new MockSuperUser();
+ $user = $this->getTestSysop()->getUser();
$context->setUser( $user );
$page->setContext( $context );