mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
Merge "Add tests for events on multiple sections edits"
This commit is contained in:
commit
84bcf2d7a2
|
@ -387,6 +387,45 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
|
|||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'new' => 747798766,
|
||||
'old' => 747798765,
|
||||
'username' => 'Admin',
|
||||
'lang' => 'en',
|
||||
'pages' => array(),
|
||||
'title' => 'UTPage',
|
||||
'expected' => array(
|
||||
array(
|
||||
'type' => 'mention-failure',
|
||||
'agent' => 'Admin',
|
||||
'section-title' => 'Section 2',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'new' => 747798767,
|
||||
'old' => 747798765,
|
||||
'username' => 'Admin',
|
||||
'lang' => 'en',
|
||||
'pages' => array(),
|
||||
'title' => 'UTPage',
|
||||
'expected' => array(
|
||||
array(
|
||||
'type' => 'mention-failure',
|
||||
'agent' => 'Admin',
|
||||
'section-title' => 'Section 2',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'new' => 747798768,
|
||||
'old' => 747798765,
|
||||
'username' => 'Admin',
|
||||
'lang' => 'en',
|
||||
'pages' => array(),
|
||||
'title' => 'UTPage',
|
||||
'expected' => array(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
9
tests/phpunit/revision_txt/747798765.txt
Normal file
9
tests/phpunit/revision_txt/747798765.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
Simultaneously edit multiple sections
|
||||
|
||||
== Section 1 ==
|
||||
|
||||
Content 1
|
||||
|
||||
== Section 2 ==
|
||||
|
||||
Content 2
|
19
tests/phpunit/revision_txt/747798766.txt
Normal file
19
tests/phpunit/revision_txt/747798766.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
Simultaneously edit multiple sections
|
||||
|
||||
== Section 1 ==
|
||||
|
||||
Content 1
|
||||
|
||||
New content with userlink ( dont try to mention this one )
|
||||
|
||||
[[User:Test11]]
|
||||
|
||||
== Section 2 ==
|
||||
|
||||
Content 2
|
||||
|
||||
New content with userlink & signature in another section ( try to mention this one )
|
||||
|
||||
[[User:NoUser]]
|
||||
|
||||
[[:User:Admin|Admin]] 13:22, 23 June 2016 (UTC)
|
25
tests/phpunit/revision_txt/747798767.txt
Normal file
25
tests/phpunit/revision_txt/747798767.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
Simultaneously edit multiple sections
|
||||
|
||||
== Section 1 ==
|
||||
|
||||
Content 1
|
||||
|
||||
New content with userlink ( dont try to mention this one )
|
||||
|
||||
[[User:Test11]]
|
||||
|
||||
== Section 1.5 ==
|
||||
|
||||
New section in between with userlink ( dont try to mention this one )
|
||||
|
||||
[[User:Test11]]
|
||||
|
||||
== Section 2 ==
|
||||
|
||||
Content 2
|
||||
|
||||
New content with userlink & signature in another section ( try to mention this one )
|
||||
|
||||
[[User:NoUser]]
|
||||
|
||||
[[:User:Admin|Admin]] 13:22, 23 June 2016 (UTC)
|
17
tests/phpunit/revision_txt/747798768.txt
Normal file
17
tests/phpunit/revision_txt/747798768.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
Simultaneously edit multiple sections
|
||||
|
||||
== Section 1 ==
|
||||
|
||||
Content 1
|
||||
|
||||
New content with signature
|
||||
|
||||
[[:User:Admin|Admin]] 13:22, 23 June 2016 (UTC)
|
||||
|
||||
== Section 2 ==
|
||||
|
||||
Content 2
|
||||
|
||||
New content with userlink ( dont try to mention this one )
|
||||
|
||||
[[User:Test11]]
|
Loading…
Reference in a new issue