Reset $wgContLang consistently for tests
authorAryeh Gregor <ayg@aryeh.name>
Sun, 1 Sep 2019 08:39:50 +0000 (11:39 +0300)
committerKrinkle <krinklemail@gmail.com>
Sun, 1 Sep 2019 23:09:26 +0000 (23:09 +0000)
commit09407afd74104bb3a674e4f5c48d10b15914d0db
tree9d8bd6017e848653e30c29954e7acaf7d69cc4be
parent3420f0338c91e53139b904e13b912ef7a1c47b65
Reset $wgContLang consistently for tests

We already reset $wgParser to a stub in a number of places where it
might have changed. Let's give $wgContLang the same treatment so we can
avoid special-case code.

This deprecates setContentLang(), which is no longer needed. The magic
of $wgContLang is now handled by setMwGlobals() and setService().

This is a follow-up to e4f69ee, which fixed one case of this problem.

Change-Id: I90925ef8b2a7478cce90d474db1b8b4539e45c15
RELEASE-NOTES-1.34
tests/phpunit/MediaWikiIntegrationTestCase.php