Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -34,6 +34,7 @@ |
35 | 35 | require_once( "$IP/languages/LanguageUtf8.php" ); |
36 | 36 | require_once( "$IP/includes/Hooks.php" ); |
37 | 37 | require_once( "$IP/maintenance/parserTestsParserHook.php" ); |
| 38 | +require_once( "$IP/maintenance/parserTestsParserTime.php" ); |
38 | 39 | |
39 | 40 | /** |
40 | 41 | * @package MediaWiki |
— | — | @@ -241,6 +242,7 @@ |
242 | 243 | |
243 | 244 | $parser =& new Parser(); |
244 | 245 | wfRunHooks( 'ParserTestParser', array( &$parser ) ); |
| 246 | + |
245 | 247 | $title =& Title::makeTitle( NS_MAIN, $titleText ); |
246 | 248 | |
247 | 249 | if (preg_match('/\\bpst\\b/i', $opts)) { |
— | — | @@ -248,7 +250,7 @@ |
249 | 251 | } elseif (preg_match('/\\bmsg\\b/i', $opts)) { |
250 | 252 | $out = $parser->transformMsg( $input, $options ); |
251 | 253 | } else { |
252 | | - $output = $parser->parse( $input, $title, $options ); |
| 254 | + $output = $parser->parse( $input, $title, $options, true, true, 1337 ); |
253 | 255 | $out = $output->getText(); |
254 | 256 | |
255 | 257 | if (preg_match('/\\bill\\b/i', $opts)) { |
— | — | @@ -295,6 +297,7 @@ |
296 | 298 | 'wgUploadDirectory' => $this->uploadDir, |
297 | 299 | 'wgStyleSheetPath' => '/skins', |
298 | 300 | 'wgSitename' => 'MediaWiki', |
| 301 | + 'wgServerName' => 'Britney Spears', |
299 | 302 | 'wgLanguageCode' => 'en', |
300 | 303 | 'wgContLanguageCode' => 'en', |
301 | 304 | 'wgDBprefix' => 'parsertest', |