From 41831cbcfe569b0fd45c1bbbf77b05f804f20319 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 17 Apr 2012 10:25:52 -0700 Subject: [PATCH] Fixed silly backend test config bug. Change-Id: I35b53dc609acb720c64f236cb58f91a73604e2f8 --- tests/phpunit/includes/filerepo/FileBackendTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/filerepo/FileBackendTest.php b/tests/phpunit/includes/filerepo/FileBackendTest.php index da44797a6a..2e95f551e9 100644 --- a/tests/phpunit/includes/filerepo/FileBackendTest.php +++ b/tests/phpunit/includes/filerepo/FileBackendTest.php @@ -23,10 +23,11 @@ class FileBackendTest extends MediaWikiTestCase { foreach ( $wgFileBackends as $conf ) { if ( $conf['name'] == $name ) { $useConfig = $conf; + break; } } $useConfig['name'] = 'localtesting'; // swap name - $class = $conf['class']; + $class = $useConfig['class']; self::$backendToUse = new $class( $useConfig ); $this->singleBackend = self::$backendToUse; } @@ -823,7 +824,7 @@ class FileBackendTest extends MediaWikiTestCase { $size = $this->backend->getFileSize( array( 'src' => $path ) ); $time = $this->backend->getFileTimestamp( array( 'src' => $path ) ); $stat = $this->backend->getFileStat( array( 'src' => $path ) ); - + $this->assertFalse( $size, "Correct file size of '$path'" ); $this->assertFalse( $time, "Correct file timestamp of '$path'" ); $this->assertFalse( $stat, "Correct file stat of '$path'" ); -- 2.20.1