Index: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php |
— | — | @@ -295,6 +295,9 @@ |
296 | 296 | $GLOBALS[$var] = $val; |
297 | 297 | } |
298 | 298 | |
| 299 | + $langObj = Language::factory( $lang ); |
| 300 | + $GLOBALS['wgContLang'] = $langObj; |
| 301 | + |
299 | 302 | $context = new RequestContext(); |
300 | 303 | $GLOBALS['wgLang'] = $context->lang; |
301 | 304 | $GLOBALS['wgContLang'] = $context->lang; |
Index: trunk/phase3/tests/parser/parserTest.inc |
— | — | @@ -680,6 +680,9 @@ |
681 | 681 | $GLOBALS[$var] = $val; |
682 | 682 | } |
683 | 683 | |
| 684 | + $langObj = Language::factory( $lang ); |
| 685 | + $GLOBALS['wgContLang'] = $langObj; |
| 686 | + |
684 | 687 | $context = new RequestContext(); |
685 | 688 | $GLOBALS['wgLang'] = $context->lang; |
686 | 689 | $GLOBALS['wgContLang'] = $context->lang; |