3 class FileRepoTest
extends MediaWikiTestCase
{
6 * @expectedException MWException
7 * @covers FileRepo::__construct
9 public function testFileRepoConstructionOptionCanNotBeNull() {
14 * @expectedException MWException
15 * @covers FileRepo::__construct
17 public function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
22 * @expectedException MWException
23 * @covers FileRepo::__construct
25 public function testFileRepoConstructionOptionNeedNameKey() {
32 * @expectedException MWException
33 * @covers FileRepo::__construct
35 public function testFileRepoConstructionOptionNeedBackendKey() {
42 * @covers FileRepo::__construct
44 public function testFileRepoConstructionWithRequiredOptions() {
46 'name' => 'FileRepoTestRepository',
47 'backend' => new FSFileBackend( [
48 'name' => 'local-testing',
49 'wikiId' => 'test_wiki',
50 'containerPaths' => []
53 $this->assertInstanceOf( 'FileRepo', $f );