(bug 35204) set wgLanguageCode in unit tests
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 5 Nov 2012 10:10:42 +0000 (11:10 +0100)
committerAntoine Musso <hashar@free.fr>
Sat, 17 Nov 2012 08:53:34 +0000 (09:53 +0100)
commit07818096dfb37bb960b01cd0e062193b201aeae4
treed17d546358c7a13431c2c2eb07fa687f965f20ec
parent0caeb7724b1739f148b0e9372fbb1c9e3e7391c6
(bug 35204) set wgLanguageCode in unit tests

Setting $wgContLang without changing $wgLanguageCode accordingly is a
very bad idea.

This caused about 20 exceptions when using LanguageCode set to 'fr'
on my installation:

"MWException: Error in MediaWikiLangTestCase::setUp(): $wgLanguageCode
('fr') is different from $wgContLang->getCode() (en)"

Follow-up of I2987db68 (2b0edc8).

Change-Id: I56d3f1bfc78d6a2e40460533524e82f360490206
tests/phpunit/includes/LanguageConverterTest.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/SampleTest.php
tests/phpunit/includes/TimeAdjustTest.php
tests/phpunit/includes/TitlePermissionTest.php
tests/phpunit/includes/parser/MagicVariableTest.php
tests/phpunit/includes/parser/NewParserTest.php