From 643239d1421eb1ff8384551c06e0bd79066350df Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 8 Jan 2006 22:35:45 +0000 Subject: [PATCH] * 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 --- maintenance/parserTests.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', -- 2.20.1