r113703 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113702‎ | r113703 | r113704 >
Date:01:44, 13 March 2012
Author:aaron
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/filerepo/FileRepoTest.php
@@ -34,8 +34,12 @@
3535 function testFileRepoConstructionWithRequiredOptions() {
3636 $f = new FileRepo( array(
3737 'name' => 'FileRepoTestRepository',
38 - 'backend' => 'local-backend',
39 - ));
 38+ 'backend' => new FSFileBackend( array(
 39+ 'name' => 'local-testing',
 40+ 'lockManager' => 'nullLockManager',
 41+ 'containerPaths' => array()
 42+ ) )
 43+ ) );
4044 $this->assertInstanceOf( 'FileRepo', $f );
4145 }
4246 }

Status & tagging log