Merge "Add test case to demonstrate T68512 is fixed"

This commit is contained in:
jenkins-bot 2015-07-07 19:18:43 +00:00 committed by Gerrit Code Review
commit 95a6f459c5
3 changed files with 33 additions and 0 deletions

View file

@ -115,6 +115,14 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
'nickname' => '', 'nickname' => '',
'fancysig' => '0', 'fancysig' => '0',
), ),
'Admin' => array(
'nickname' => '[[:User:Admin|Admin]]',
'fancysig' => '1',
),
'Test11' => array(
'nickname' => '',
'fancysig' => '0',
),
); );
protected function setUp() { protected function setUp() {
@ -270,6 +278,26 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
), ),
), ),
), ),
// T68512, leading colon in user page link in signature
array(
'new' => 612485855,
'old' => 612485595,
'username' => 'Admin',
'lang' => 'en',
'pages' => array(),
'title' => 'User_talk:Admin',
'expected' => array(
array(
'type' => 'mention',
'agent' => 'Admin',
),
array(
'type' => 'edit-user-talk',
'agent' => 'Admin',
),
),
'precondition' => 'isParserFunctionsInstalled',
),
); );
} }

View file

@ -0,0 +1 @@
Hello.

View file

@ -0,0 +1,4 @@
Hello.
== Hi ==
Hi [[User:Test11]]. [[:User:Admin|Admin]] 23:47, 6 July 2015 (UTC)