From: Aaron Schulz Date: Tue, 13 Mar 2012 01:44:39 +0000 (+0000) Subject: Tweak testFileRepoConstructionWithRequiredOptions so that it doesn't fail depending... X-Git-Tag: 1.31.0-rc.0~24279 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=19799ae5bb4b9dcfd77fc92ebd0853a547be7dd2;p=lhc%2Fweb%2Fwiklou.git Tweak testFileRepoConstructionWithRequiredOptions so that it doesn't fail depending on the config of the wiki being tested on. --- diff --git a/tests/phpunit/includes/filerepo/FileRepoTest.php b/tests/phpunit/includes/filerepo/FileRepoTest.php index 0f0231381b..8f92c123e6 100644 --- a/tests/phpunit/includes/filerepo/FileRepoTest.php +++ b/tests/phpunit/includes/filerepo/FileRepoTest.php @@ -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 ); } }