Merge "CologneBlue rewrite: kill mWatchLinkNum, watchThisPage() is only called once...
[lhc/web/wiklou.git] / tests / phpunit / includes / filerepo / FileRepoTest.php
index ca34442..8f92c12 100644 (file)
@@ -31,4 +31,15 @@ class FileRepoTest extends MediaWikiTestCase {
                ) );
        }
 
+       function testFileRepoConstructionWithRequiredOptions() {
+               $f = new FileRepo( array(
+                       'name'    => 'FileRepoTestRepository',
+                       'backend' => new FSFileBackend( array(
+                               'name'           => 'local-testing',
+                               'lockManager'    => 'nullLockManager',
+                               'containerPaths' => array()
+                       ) )
+               ) );
+               $this->assertInstanceOf( 'FileRepo', $f );
+       }
 }