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:
C. Scott Ananian 2023-12-14 19:31:40 -05:00 committed by C. Scott Ananian
parent f3389a38be
commit cf5aabc42f

View file

@ -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.
[