r110180: fixed copy-paste cruft for custom backend code. Also made backend names...
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 28 Jan 2012 00:43:55 +0000 (00:43 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 28 Jan 2012 00:43:55 +0000 (00:43 +0000)
tests/phpunit/includes/filerepo/StoreBatchTest.php

index 700c962..6abceeb 100644 (file)
@@ -18,12 +18,12 @@ class StoreBatchTest extends MediaWikiTestCase {
                                        $useConfig = $conf;
                                }
                        }
-                       $useConfig['name'] = 'localtesting'; // swap name
-                       $class = $conf['class'];
-                       self::$backendToUse = new $class( $useConfig );
+                       $useConfig['name'] = 'local-testing'; // swap name
+                       $class = $useConfig['class'];
+                       $backend = new $class( $useConfig );
                } else {
                        $backend = new FSFileBackend( array(
-                               'name'        => 'local-backend',
+                               'name'        => 'local-testing',
                                'lockManager' => 'nullLockManager',
                                'containerPaths' => array(
                                        'unittests-public'  => "{$tmpPrefix}-public",