Add null lock manager to parser tests to support code that uses it by default.
authorMatthew Flaschen <mflaschen@wikimedia.org>
Fri, 8 Feb 2013 18:23:36 +0000 (13:23 -0500)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Fri, 8 Feb 2013 18:23:36 +0000 (13:23 -0500)
Change-Id: I938bd1b64a1b1ff241555f157c0ba737d72ee48d

tests/parser/parserTest.inc

index db3c84a..05a6f15 100644 (file)
@@ -155,6 +155,9 @@ class ParserTest {
                        'name'          => 'fsLockManager',
                        'class'         => 'FSLockManager',
                        'lockDirectory' => wfTempDir() . '/test-repo/lockdir',
+               ), array(
+                       'name'          => 'nullLockManager',
+                       'class'         => 'NullLockManager',
                ) );
                $wgLocalFileRepo = array(
                        'class'           => 'LocalRepo',
@@ -634,11 +637,14 @@ class ParserTest {
                        'wgScriptPath' => '/',
                        'wgArticlePath' => '/wiki/$1',
                        'wgActionPaths' => array(),
-                       'wgLockManagers' => array(
+                       'wgLockManagers' => array( array(
                                'name'          => 'fsLockManager',
                                'class'         => 'FSLockManager',
                                'lockDirectory' => $this->uploadDir . '/lockdir',
-                       ),
+                       ), array(
+                               'name'          => 'nullLockManager',
+                               'class'         => 'NullLockManager',
+                       ) ),
                        'wgLocalFileRepo' => array(
                                'class' => 'LocalRepo',
                                'name' => 'local',