summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/filerepo/FileRepoTest.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-08-12 09:28:15 +0200
committerPierre Schmitz <pierre@archlinux.de>2013-08-12 09:28:15 +0200
commit08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch)
tree577a29fb579188d16003a209ce2a2e9c5b0aa2bd /tests/phpunit/includes/filerepo/FileRepoTest.php
parentcacc939b34e315b85e2d72997811eb6677996cc1 (diff)
Update to MediaWiki 1.21.1
Diffstat (limited to 'tests/phpunit/includes/filerepo/FileRepoTest.php')
-rw-r--r--tests/phpunit/includes/filerepo/FileRepoTest.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/phpunit/includes/filerepo/FileRepoTest.php b/tests/phpunit/includes/filerepo/FileRepoTest.php
deleted file mode 100644
index 8f92c123..00000000
--- a/tests/phpunit/includes/filerepo/FileRepoTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-class FileRepoTest extends MediaWikiTestCase {
-
- /**
- * @expectedException MWException
- */
- function testFileRepoConstructionOptionCanNotBeNull() {
- $f = new FileRepo();
- }
- /**
- * @expectedException MWException
- */
- function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
- $f = new FileRepo( array() );
- }
- /**
- * @expectedException MWException
- */
- function testFileRepoConstructionOptionNeedNameKey() {
- $f = new FileRepo( array(
- 'backend' => 'foobar'
- ) );
- }
- /**
- * @expectedException MWException
- */
- function testFileRepoConstructionOptionNeedBackendKey() {
- $f = new FileRepo( array(
- 'name' => 'foobar'
- ) );
- }
-
- function testFileRepoConstructionWithRequiredOptions() {
- $f = new FileRepo( array(
- 'name' => 'FileRepoTestRepository',
- 'backend' => new FSFileBackend( array(
- 'name' => 'local-testing',
- 'lockManager' => 'nullLockManager',
- 'containerPaths' => array()
- ) )
- ) );
- $this->assertInstanceOf( 'FileRepo', $f );
- }
-}