MediaWiki REL1_32
FileRepoTest.php
Go to the documentation of this file.
1<?php
2
4
10 new FileRepo();
11 }
12
18 new FileRepo( [] );
19 }
20
26 new FileRepo( [
27 'backend' => 'foobar'
28 ] );
29 }
30
36 new FileRepo( [
37 'name' => 'foobar'
38 ] );
39 }
40
45 $f = new FileRepo( [
46 'name' => 'FileRepoTestRepository',
47 'backend' => new FSFileBackend( [
48 'name' => 'local-testing',
49 'wikiId' => 'test_wiki',
50 'containerPaths' => []
51 ] )
52 ] );
53 $this->assertInstanceOf( FileRepo::class, $f );
54 }
55}
Class for a file system (FS) based file backend.
testFileRepoConstructionWithRequiredOptions()
FileRepo::__construct.
testFileRepoConstructionOptionCanNotBeAnEmptyArray()
MWException FileRepo::__construct.
testFileRepoConstructionOptionCanNotBeNull()
MWException FileRepo::__construct.
testFileRepoConstructionOptionNeedNameKey()
MWException FileRepo::__construct.
testFileRepoConstructionOptionNeedBackendKey()
MWException FileRepo::__construct.
Base class for file repositories.
Definition FileRepo.php:39