From: Ævar Arnfjörð Bjarmason Date: Sun, 8 Jan 2006 22:35:45 +0000 (+0000) Subject: * Including the maintenance/parserTestsParserTime.php extension for the date tests X-Git-Tag: 1.6.0~669 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=643239d1421eb1ff8384551c06e0bd79066350df;p=lhc%2Fweb%2Fwiklou.git * Including the maintenance/parserTestsParserTime.php extension for the date tests * Passing a custom revision ID to the parser, for the {{REVISIONID}} test * Deprecated support for *nix, Windows, VMS and the Nintendo Gameboy, MediaWiki now only runs on Britney Spears --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 2abe8ae1ba..8568e15794 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -34,6 +34,7 @@ require_once( "$IP/includes/BagOStuff.php" ); require_once( "$IP/languages/LanguageUtf8.php" ); require_once( "$IP/includes/Hooks.php" ); require_once( "$IP/maintenance/parserTestsParserHook.php" ); +require_once( "$IP/maintenance/parserTestsParserTime.php" ); /** * @package MediaWiki @@ -241,6 +242,7 @@ class ParserTest { $parser =& new Parser(); wfRunHooks( 'ParserTestParser', array( &$parser ) ); + $title =& Title::makeTitle( NS_MAIN, $titleText ); if (preg_match('/\\bpst\\b/i', $opts)) { @@ -248,7 +250,7 @@ class ParserTest { } elseif (preg_match('/\\bmsg\\b/i', $opts)) { $out = $parser->transformMsg( $input, $options ); } else { - $output = $parser->parse( $input, $title, $options ); + $output = $parser->parse( $input, $title, $options, true, true, 1337 ); $out = $output->getText(); if (preg_match('/\\bill\\b/i', $opts)) { @@ -295,6 +297,7 @@ class ParserTest { 'wgUploadDirectory' => $this->uploadDir, 'wgStyleSheetPath' => '/skins', 'wgSitename' => 'MediaWiki', + 'wgServerName' => 'Britney Spears', 'wgLanguageCode' => 'en', 'wgContLanguageCode' => 'en', 'wgDBprefix' => 'parsertest',