test FileRepo constructor
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 7 Feb 2012 14:54:06 +0000 (14:54 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 7 Feb 2012 14:54:06 +0000 (14:54 +0000)
tests/phpunit/includes/filerepo/FileRepoTest.php

index ca34442..0f02313 100644 (file)
@@ -31,4 +31,11 @@ class FileRepoTest extends MediaWikiTestCase {
                ) );
        }
 
+       function testFileRepoConstructionWithRequiredOptions() {
+               $f = new FileRepo( array(
+                       'name'    => 'FileRepoTestRepository',
+                       'backend' => 'local-backend',
+               ));
+               $this->assertInstanceOf( 'FileRepo', $f );
+       }
 }