Set $wgUploadNavigationUrl to false on parser and unit tests
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 8 Aug 2014 19:44:01 +0000 (21:44 +0200)
committerHashar <hashar@free.fr>
Wed, 13 Aug 2014 15:05:14 +0000 (15:05 +0000)
Setting this to default avoids failing parser tests,
when it is set in LocalSettings.php

Bug: 54576
Change-Id: I531d5839e9abe571c6c29f290bb159dabca34798

tests/parser/parserTest.inc
tests/phpunit/includes/parser/NewParserTest.php

index e76b9df..a8d26d6 100644 (file)
@@ -813,6 +813,7 @@ class ParserTest {
                                ) )
                        ),
                        'wgEnableUploads' => self::getOptionValue( 'wgEnableUploads', $opts, true ),
+                       'wgUploadNavigationUrl' => false,
                        'wgStylePath' => '/skins',
                        'wgSitename' => 'MediaWiki',
                        'wgLanguageCode' => $lang,
index 0499f88..794ff36 100644 (file)
@@ -75,6 +75,7 @@ class NewParserTest extends MediaWikiTestCase {
                $tmpGlobals['wgExtensionAssetsPath'] = '/extensions';
                $tmpGlobals['wgStylePath'] = '/skins';
                $tmpGlobals['wgEnableUploads'] = true;
+               $tmpGlobals['wgUploadNavigationUrl'] = false;
                $tmpGlobals['wgThumbnailScriptPath'] = false;
                $tmpGlobals['wgLocalFileRepo'] = array(
                        'class' => 'LocalRepo',