diff options
author | Brian Evans <grknight@gentoo.org> | 2019-04-11 12:58:18 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2019-04-11 12:58:18 -0400 |
commit | 8befe8b8f4fecc31aa7f04fbb4b31a98dce28325 (patch) | |
tree | c45b2e6a265c342333073bfef0dca899bd676721 /MLEB/Translate/tests/phpunit/SpecialPagesTest.php | |
parent | Update Widgets for 1.32 (diff) | |
download | extensions-8befe8b8f4fecc31aa7f04fbb4b31a98dce28325.tar.gz extensions-8befe8b8f4fecc31aa7f04fbb4b31a98dce28325.tar.bz2 extensions-8befe8b8f4fecc31aa7f04fbb4b31a98dce28325.zip |
Update Language Bundle to 2019.01
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/tests/phpunit/SpecialPagesTest.php')
-rw-r--r-- | MLEB/Translate/tests/phpunit/SpecialPagesTest.php | 4 |
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 ); |