Force wgDebugTimestamps false
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 20 Feb 2011 17:44:37 +0000 (17:44 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 20 Feb 2011 17:44:37 +0000 (17:44 +0000)
Test GlobalTest::testDebugFunctionTest() does not take into account the setting
$wgDebugTimestamps = true.  Setting it false makes sure the tests pass though
not testing the settings :(

tests/phpunit/includes/GlobalTest.php

index 1cbb5dd..8d466c4 100644 (file)
@@ -492,10 +492,11 @@ class GlobalTest extends MediaWikiTestCase {
        
        function testDebugFunctionTest() {
        
-               global $wgDebugLogFile, $wgOut, $wgShowDebug;
+               global $wgDebugLogFile, $wgOut, $wgShowDebug, $wgDebugTimestamps;
                
                $old_log_file = $wgDebugLogFile;
                $wgDebugLogFile = tempnam( wfTempDir(), 'mw-' );
+               $wgDebugTimestamps = false; # FIXME: this setting should be tested