Tweak testFileRepoConstructionWithRequiredOptions so that it doesn't fail depending...
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 Mar 2012 01:44:39 +0000 (01:44 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 Mar 2012 01:44:39 +0000 (01:44 +0000)
tests/phpunit/includes/filerepo/FileRepoTest.php

index 0f02313..8f92c12 100644 (file)
@@ -34,8 +34,12 @@ class FileRepoTest extends MediaWikiTestCase {
        function testFileRepoConstructionWithRequiredOptions() {
                $f = new FileRepo( array(
                        'name'    => 'FileRepoTestRepository',
-                       'backend' => 'local-backend',
-               ));
+                       'backend' => new FSFileBackend( array(
+                               'name'           => 'local-testing',
+                               'lockManager'    => 'nullLockManager',
+                               'containerPaths' => array()
+                       ) )
+               ) );
                $this->assertInstanceOf( 'FileRepo', $f );
        }
 }