Fix for r106752: manually add the backend to the fake local repo to avoid exception...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 31 Dec 2011 14:43:14 +0000 (14:43 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 31 Dec 2011 14:43:14 +0000 (14:43 +0000)
See https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106752#c28264 for the report.

tests/parser/parserTest.inc

index 5d6d2e6..be6ee0e 100644 (file)
@@ -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',