From: Alexandre Emsenhuber Date: Sat, 31 Dec 2011 14:43:14 +0000 (+0000) Subject: Fix for r106752: manually add the backend to the fake local repo to avoid exception... X-Git-Tag: 1.31.0-rc.0~25656 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=ccdf2679b261393ecea3ea23832582f16d22e17a;p=lhc%2Fweb%2Fwiklou.git Fix for r106752: manually add the backend to the fake local repo to avoid exception when running parser tests. See https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106752#c28264 for the report. --- diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index 5d6d2e6c3a..be6ee0ea7b 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -630,10 +630,19 @@ class ParserTest { 'wgLocalFileRepo' => array( 'class' => 'LocalRepo', 'name' => 'local', - 'directory' => $this->uploadDir, 'url' => 'http://example.com/images', 'hashLevels' => 2, 'transformVia404' => false, + 'backend' => new FSFileBackend( array( + 'name' => 'local-backend', + 'lockManager' => 'fsLockManager', + 'containerPaths' => array( + 'media-public' => $this->uploadDir, + 'media-thumb' => $this->uploadDir . '/thumb', + 'media-temp' => $this->uploadDir . '/temp', + 'media-deleted' => $this->uploadDir . '/delete', + ) + ) ) ), 'wgEnableUploads' => self::getOptionValue( 'wgEnableUploads', $opts, true ), 'wgStylePath' => '/skins',