3 class FileRepoTest
extends MediaWikiTestCase
{
5 * @expectedException MWException
7 function testFileRepoConstructionOptionCanNotBeNull() {
12 * @expectedException MWException
14 function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
15 new FileRepo( array() );
19 * @expectedException MWException
21 function testFileRepoConstructionOptionNeedNameKey() {
28 * @expectedException MWException
30 function testFileRepoConstructionOptionNeedBackendKey() {
36 function testFileRepoConstructionWithRequiredOptions() {
37 $f = new FileRepo( array(
38 'name' => 'FileRepoTestRepository',
39 'backend' => new FSFileBackend( array(
40 'name' => 'local-testing',
41 'lockManager' => 'nullLockManager',
42 'containerPaths' => array()
45 $this->assertInstanceOf( 'FileRepo', $f );