From: umherirrender Date: Fri, 8 Aug 2014 19:44:01 +0000 (+0200) Subject: Set $wgUploadNavigationUrl to false on parser and unit tests X-Git-Tag: 1.31.0-rc.0~14460 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=6b3cbc276c7019babadc91f0911d7cc846588b20;p=lhc%2Fweb%2Fwiklou.git 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 --- 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',