From: Antoine Musso Date: Tue, 7 Feb 2012 14:54:06 +0000 (+0000) Subject: test FileRepo constructor X-Git-Tag: 1.31.0-rc.0~24892 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=6a3fb66d2d76297a83d3d069d9799be91e21eb1f;p=lhc%2Fweb%2Fwiklou.git test FileRepo constructor --- diff --git a/tests/phpunit/includes/filerepo/FileRepoTest.php b/tests/phpunit/includes/filerepo/FileRepoTest.php index ca34442a7e..0f0231381b 100644 --- a/tests/phpunit/includes/filerepo/FileRepoTest.php +++ b/tests/phpunit/includes/filerepo/FileRepoTest.php @@ -31,4 +31,11 @@ class FileRepoTest extends MediaWikiTestCase { ) ); } + function testFileRepoConstructionWithRequiredOptions() { + $f = new FileRepo( array( + 'name' => 'FileRepoTestRepository', + 'backend' => 'local-backend', + )); + $this->assertInstanceOf( 'FileRepo', $f ); + } }