ParserTestRunner: add [[pmid:]] interwiki prefix
This supports writing tests for the behavior requested in T145590#8608455 whereby magic links are preferentially serialized as interwiki links. Bug: T145590 Change-Id: I2db78bdba6a32fbc2ef625e8c4a34091455bc234
This commit is contained in:
parent
f3389a38be
commit
cf5aabc42f
1 changed files with 6 additions and 0 deletions
|
|
@ -783,6 +783,12 @@ class ParserTestRunner {
|
|||
'iw_url' => 'https://gerrit.wikimedia.org/$1',
|
||||
'iw_local' => 1,
|
||||
],
|
||||
// Added to support T145590#8608455
|
||||
[
|
||||
'iw_prefix' => 'pmid',
|
||||
'iw_url' => '//www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract',
|
||||
'iw_local' => 1,
|
||||
],
|
||||
// Deliberately missing a $1 in the URL to exercise a common
|
||||
// misconfiguration.
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in a new issue