TestRunner: Set local interwiki URLs to match wgServer, like in production
Matching Parsoid change I6e7bdcdea6bc2fd955f0a04f25f09314ec1230c8. Change-Id: I6e7bdcdea6bc2fd955f0a04f25f09314ec1230c8
This commit is contained in:
parent
6f48f25556
commit
dd4d1db814
2 changed files with 10 additions and 6 deletions
|
|
@ -590,14 +590,16 @@ class ParserTestRunner {
|
|||
static $testInterwikis = [
|
||||
[
|
||||
'iw_prefix' => 'local',
|
||||
'iw_url' => 'http://doesnt.matter.org/$1',
|
||||
'iw_local' => 0,
|
||||
// This is a "local interwiki" (see wgLocalInterwikis elsewhere in this file)
|
||||
'iw_url' => 'http://example.org/wiki/$1',
|
||||
'iw_local' => 1,
|
||||
],
|
||||
// Local interwiki that matches a namespace name (T228616)
|
||||
[
|
||||
'iw_prefix' => 'project',
|
||||
'iw_url' => 'http://doesnt.matter.org/$1',
|
||||
'iw_local' => 0,
|
||||
// This is a "local interwiki" (see wgLocalInterwikis elsewhere in this file)
|
||||
'iw_url' => 'http://example.org/wiki/$1',
|
||||
'iw_local' => 1,
|
||||
],
|
||||
[
|
||||
'iw_prefix' => 'wikipedia',
|
||||
|
|
@ -638,7 +640,8 @@ class ParserTestRunner {
|
|||
],
|
||||
[
|
||||
'iw_prefix' => 'mi',
|
||||
'iw_url' => 'http://mi.wikipedia.org/wiki/$1',
|
||||
// This is a "local interwiki" (see wgLocalInterwikis elsewhere in this file)
|
||||
'iw_url' => 'http://example.org/wiki/$1',
|
||||
'iw_local' => 1,
|
||||
],
|
||||
[
|
||||
|
|
@ -687,6 +690,7 @@ class ParserTestRunner {
|
|||
|
||||
// This affects title normalization in links. It invalidates
|
||||
// MediaWikiTitleCodec objects.
|
||||
// These interwikis should have 'iw_url' that matches wgServer.
|
||||
$setup['wgLocalInterwikis'] = [ 'local', 'project', 'mi' ];
|
||||
$reset = function () {
|
||||
$this->resetTitleServices();
|
||||
|
|
|
|||
|
|
@ -26577,7 +26577,7 @@ Serialize interwiki links pointing to the current wiki as plain wiki links (T678
|
|||
!! options
|
||||
parsoid=html2wt
|
||||
!! html/parsoid
|
||||
<p><a rel="mw:ExtLink" href="http://mi.wikipedia.org/wiki/Foo">Foo</a></p>
|
||||
<p><a rel="mw:ExtLink" href="http://example.org/wiki/Foo">Foo</a></p>
|
||||
!! wikitext
|
||||
[[Foo]]
|
||||
!! end
|
||||
|
|
|
|||
Loading…
Reference in a new issue