tests: Ensure main RequestContext reflects custom $wgLang
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 1 Mar 2016 21:46:35 +0000 (21:46 +0000)
committerKrinkle <krinklemail@gmail.com>
Thu, 3 Mar 2016 01:39:51 +0000 (01:39 +0000)
commit60e4f3fd90abf1aced88846138ba9ede66571bda
tree72b303d884e857388743151a1dc35c451b2cc750
parent7e6a9ce4ad9a86d2935427169ba07bd739b558b2
tests: Ensure main RequestContext reflects custom $wgLang

Call RequestContext::resetMain() so that any subsequent call
to getMain() and getLanguage() is aware of the latest state
as set up by the setUp() and setupGlobals() methods.

The MediaWikiTestCase class for PHPUnit did this already, but
the parserTest suite and UploadFromUrlTestSuite didn't yet.

Change-Id: I6481176228944004091078704d0346c8f3fc0cf1
tests/parser/parserTest.inc
tests/phpunit/suites/UploadFromUrlTestSuite.php