Fix TimestampTest broken by 7e3386d4
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 23 Apr 2013 13:27:41 +0000 (15:27 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 23 Apr 2013 13:27:41 +0000 (15:27 +0200)
commit549e827efb162085a7c53b8f83a5f553524305c1
treede0fa4c3b4632e56125ad9815a9f1dfb0e01334c
parente30a27945effab2ecb52c93699a81ebc64682f1b
Fix TimestampTest broken by 7e3386d4

- Call RequestContext::getMain()->setLanguage() since
  MWTimestamp::getHumanTimestamp() will call getLanguage() to get the
  Language object (and it not always English depending on the order the
  tests are called)
- While I'm at it, use MediaWikiLangTestCase to avoid duplicating things

Change-Id: I910287ccf093ef5681cd09445501dccc8d3f4d14
tests/phpunit/includes/TimestampTest.php