From: daniel Date: Mon, 15 Oct 2012 12:50:21 +0000 (+0200) Subject: Fix test for view language for non-wikitext in main NS. X-Git-Tag: 1.31.0-rc.0~21713^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=c4e3c379c1c3251cb31d2973c7bc452f67d097c8;p=lhc%2Fweb%2Fwiklou.git Fix test for view language for non-wikitext in main NS. This test assumed wikitext in the main namespace. That is not always the case. Now it expects wikitext in the Help namespace. Also not guaranteed, that should pretty likely be currect. Change-Id: Icf437b4396812131c501c4594ece2eff7604b6ba --- diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index 0a3f6f6f86..86479540d8 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -126,11 +126,11 @@ class TitleTest extends MediaWikiTestCase { # - wgDefaultLanguageVariant # - Optional message return array( - array( 'fr', 'Main_page', 'fr', 'fr', false ), - array( 'es', 'Main_page', 'es', 'zh-tw', false ), - array( 'zh', 'Main_page', 'zh', 'zh-tw', false ), + array( 'fr', 'Help:I_need_somebody', 'fr', 'fr', false ), + array( 'es', 'Help:I_need_somebody', 'es', 'zh-tw', false ), + array( 'zh', 'Help:I_need_somebody', 'zh', 'zh-tw', false ), - array( 'es', 'Main_page', 'es', 'zh-tw', 'zh-cn' ), + array( 'es', 'Help:I_need_somebody', 'es', 'zh-tw', 'zh-cn' ), array( 'es', 'MediaWiki:About', 'es', 'zh-tw', 'zh-cn' ), array( 'es', 'MediaWiki:About/', 'es', 'zh-tw', 'zh-cn' ), array( 'de', 'MediaWiki:About/de', 'es', 'zh-tw', 'zh-cn' ), @@ -139,7 +139,7 @@ class TitleTest extends MediaWikiTestCase { array( 'en', 'User:JohnDoe/Common.js', 'es', 'zh-tw', 'zh-cn' ), array( 'en', 'User:JohnDoe/Monobook.css', 'es', 'zh-tw', 'zh-cn' ), - array( 'zh-cn', 'Main_page', 'zh', 'zh-tw', 'zh-cn' ), + array( 'zh-cn', 'Help:I_need_somebody', 'zh', 'zh-tw', 'zh-cn' ), array( 'zh', 'MediaWiki:About', 'zh', 'zh-tw', 'zh-cn' ), array( 'zh', 'MediaWiki:About/', 'zh', 'zh-tw', 'zh-cn' ), array( 'de', 'MediaWiki:About/de', 'zh', 'zh-tw', 'zh-cn' ),