From 6b3cbc276c7019babadc91f0911d7cc846588b20 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 8 Aug 2014 21:44:01 +0200 Subject: [PATCH] Set $wgUploadNavigationUrl to false on parser and unit tests Setting this to default avoids failing parser tests, when it is set in LocalSettings.php Bug: 54576 Change-Id: I531d5839e9abe571c6c29f290bb159dabca34798 --- tests/parser/parserTest.inc | 1 + tests/phpunit/includes/parser/NewParserTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index e76b9df455..a8d26d62e0 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -813,6 +813,7 @@ class ParserTest { ) ) ), 'wgEnableUploads' => self::getOptionValue( 'wgEnableUploads', $opts, true ), + 'wgUploadNavigationUrl' => false, 'wgStylePath' => '/skins', 'wgSitename' => 'MediaWiki', 'wgLanguageCode' => $lang, diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index 0499f882e7..794ff36bba 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -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', -- 2.20.1