X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fsuites%2FUploadFromUrlTestSuite.php;h=3b6d6f219b580bad6ce62f58717618f94c061793;hb=350592ce2305b665e6ab8a018c55ea3d3a3b644e;hp=556c75412a4b8c56e45c5b411758a2d3b1d6cd4e;hpb=8c99c1484536efee223d881ae29ef6cd0412615e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/suites/UploadFromUrlTestSuite.php b/tests/phpunit/suites/UploadFromUrlTestSuite.php index 556c75412a..3b6d6f219b 100644 --- a/tests/phpunit/suites/UploadFromUrlTestSuite.php +++ b/tests/phpunit/suites/UploadFromUrlTestSuite.php @@ -16,8 +16,7 @@ class UploadFromUrlTestSuite extends PHPUnit_Framework_TestSuite { } protected function setUp() { - global $wgParser, $wgParserConf, $IP, $messageMemc, $wgMemc, $wgUser, - $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, + global $IP, $messageMemc, $wgMemc, $wgUser, $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, $wgParserCacheType, $wgNamespaceAliases, $wgNamespaceProtection; $tmpDir = $this->getNewTempDirectory(); @@ -58,7 +57,7 @@ class UploadFromUrlTestSuite extends PHPUnit_Framework_TestSuite { $wgParserCacheType = CACHE_NONE; DeferredUpdates::clearPendingUpdates(); - $wgMemc = wfGetMainCache(); + $wgMemc = ObjectCache::getLocalClusterInstance(); $messageMemc = wfGetMessageCacheStorage(); RequestContext::resetMain(); @@ -66,7 +65,6 @@ class UploadFromUrlTestSuite extends PHPUnit_Framework_TestSuite { $wgUser = new User; $wgLang = $context->getLanguage(); $wgOut = $context->getOutput(); - $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], [ $wgParserConf ] ); $wgRequest = $context->getRequest(); if ( $wgStyleDirectory === false ) {