3 class FileRepoTest
extends MediaWikiTestCase
{
6 * @expectedException MWException
8 function testFileRepoConstructionOptionCanNotBeNull() {
13 * @expectedException MWException
15 function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
16 $f = new FileRepo( array() );
20 * @expectedException MWException
22 function testFileRepoConstructionOptionNeedNameKey() {
23 $f = new FileRepo( array(
29 * @expectedException MWException
31 function testFileRepoConstructionOptionNeedBackendKey() {
32 $f = new FileRepo( array(
37 function testFileRepoConstructionWithRequiredOptions() {
38 $f = new FileRepo( array(
39 'name' => 'FileRepoTestRepository',
40 'backend' => new FSFileBackend( array(
41 'name' => 'local-testing',
42 'lockManager' => 'nullLockManager',
43 'containerPaths' => array()
46 $this->assertInstanceOf( 'FileRepo', $f );