'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'local-public' => "{$tmpDir}/test-repo/public",
'local-thumb' => "{$tmpDir}/test-repo/thumb",
DeferredUpdates::clearPendingUpdates();
$wgMemc = wfGetMainCache();
$messageMemc = wfGetMessageCacheStorage();
- $parserMemc = wfGetParserCacheStorage();
+ RequestContext::resetMain();
+ $context = RequestContext::getMain();
$wgUser = new User;
- $context = new RequestContext;
$wgLang = $context->getLanguage();
$wgOut = $context->getOutput();
$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], [ $wgParserConf ] );