Move $wgLocalisationCacheConf disabling from bootstrap.php to phpunit.php
authorPlatonides <platonides@users.mediawiki.org>
Fri, 21 Jan 2011 22:44:40 +0000 (22:44 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 21 Jan 2011 22:44:40 +0000 (22:44 +0000)
tests/phpunit/bootstrap.php
tests/phpunit/phpunit.php

index 101418f..46d2534 100644 (file)
@@ -28,9 +28,8 @@ dependencies.
 EOF;
 }
 
-global $wgLocalisationCacheConf, $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType;
+global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType;
 global $wgMessageCache, $messageMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgMemc;
-$wgLocalisationCacheConf['storeClass'] =  'LCStore_Null';
 $wgMainCacheType = CACHE_NONE;
 $wgMessageCacheType = CACHE_NONE;
 $wgParserCacheType = CACHE_NONE;
index e89c442..d196c1a 100755 (executable)
@@ -20,6 +20,8 @@ require_once( "$IP/maintenance/commandLine.inc" );
 // Assume UTC for testing purposes
 $wgLocaltimezone = 'UTC';
 
+$wgLocalisationCacheConf['storeClass'] =  'LCStore_Null';
+
 if( !in_array( '--configuration', $_SERVER['argv'] ) ) {
        //Hack to eliminate the need to use the Makefile (which sucks ATM)
        $_SERVER['argv'][] = '--configuration';