Index: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php |
— | — | @@ -297,10 +297,9 @@ |
298 | 298 | |
299 | 299 | $langObj = Language::factory( $lang ); |
300 | 300 | $GLOBALS['wgContLang'] = $langObj; |
301 | | - |
302 | 301 | $context = new RequestContext(); |
303 | 302 | $GLOBALS['wgLang'] = $context->lang; |
304 | | - $GLOBALS['wgContLang'] = $context->lang; |
| 303 | + |
305 | 304 | $GLOBALS['wgMemc'] = new EmptyBagOStuff; |
306 | 305 | $GLOBALS['wgOut'] = new $context->output; |
307 | 306 | |
Index: trunk/phase3/tests/parser/parserTest.inc |
— | — | @@ -682,10 +682,9 @@ |
683 | 683 | |
684 | 684 | $langObj = Language::factory( $lang ); |
685 | 685 | $GLOBALS['wgContLang'] = $langObj; |
686 | | - |
687 | 686 | $context = new RequestContext(); |
688 | | - $GLOBALS['wgLang'] = $context->lang; |
689 | | - $GLOBALS['wgContLang'] = $context->lang; |
| 687 | + $GLOBALS['wgLang'] = $context->getLang(); |
| 688 | + |
690 | 689 | $GLOBALS['wgMemc'] = new EmptyBagOStuff; |
691 | 690 | $GLOBALS['wgOut'] = new $context->output; |
692 | 691 | |