mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 17:50:39 +00:00
Merge "Add test case to demonstrate T68512 is fixed"
This commit is contained in:
commit
95a6f459c5
|
@ -115,6 +115,14 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
|
|||
'nickname' => '',
|
||||
'fancysig' => '0',
|
||||
),
|
||||
'Admin' => array(
|
||||
'nickname' => '[[:User:Admin|Admin]]',
|
||||
'fancysig' => '1',
|
||||
),
|
||||
'Test11' => array(
|
||||
'nickname' => '',
|
||||
'fancysig' => '0',
|
||||
),
|
||||
);
|
||||
|
||||
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',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
1
tests/phpunit/revision_txt/612485595.txt
Normal file
1
tests/phpunit/revision_txt/612485595.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Hello.
|
4
tests/phpunit/revision_txt/612485855.txt
Normal file
4
tests/phpunit/revision_txt/612485855.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Hello.
|
||||
== Hi ==
|
||||
Hi [[User:Test11]]. [[:User:Admin|Admin]] 23:47, 6 July 2015 (UTC)
|
||||
|
Loading…
Reference in a new issue