https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113703
Revision: 113703 Author: aaron Date: 2012-03-13 01:44:39 +0000 (Tue, 13 Mar 2012) Log Message: ----------- Tweak testFileRepoConstructionWithRequiredOptions so that it doesn't fail depending on the config of the wiki being tested on. Modified Paths: -------------- trunk/phase3/tests/phpunit/includes/filerepo/FileRepoTest.php Modified: trunk/phase3/tests/phpunit/includes/filerepo/FileRepoTest.php =================================================================== --- trunk/phase3/tests/phpunit/includes/filerepo/FileRepoTest.php 2012-03-13 01:36:02 UTC (rev 113702) +++ trunk/phase3/tests/phpunit/includes/filerepo/FileRepoTest.php 2012-03-13 01:44:39 UTC (rev 113703) @@ -34,8 +34,12 @@ 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 ); } } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs