From: umherirrender Date: Sat, 27 Sep 2014 09:53:02 +0000 (+0200) Subject: Set content language for ContentHandlerTest::testGetAutosummary X-Git-Tag: 1.31.0-rc.0~13721^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=10e87016a41bf00ea53e6ce27d750f32cd052ce6;p=lhc%2Fweb%2Fwiklou.git Set content language for ContentHandlerTest::testGetAutosummary This test depends on content language when comparing to a english message text. Change-Id: Ic50c0b6a821fb1d51d70119fbf712a18b73ce4c8 --- diff --git a/tests/phpunit/includes/content/ContentHandlerTest.php b/tests/phpunit/includes/content/ContentHandlerTest.php index f7449734c4..1a90d6e201 100644 --- a/tests/phpunit/includes/content/ContentHandlerTest.php +++ b/tests/phpunit/includes/content/ContentHandlerTest.php @@ -317,6 +317,8 @@ class ContentHandlerTest extends MediaWikiTestCase { * page. */ public function testGetAutosummary() { + $this->setMwGlobals( 'wgContLang', Language::factory( 'en' ) ); + $content = new DummyContentHandlerForTesting( CONTENT_MODEL_WIKITEXT ); $title = Title::newFromText( 'Help:Test' ); // Create a new content object with no content