parserTests: Use "fallback" skin unless otherwise specified
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 20 Jul 2017 01:42:56 +0000 (18:42 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 25 Jul 2017 18:54:03 +0000 (18:54 +0000)
commit7916919c810a2385c1481423a999b972c349e388
tree8f417a219c5bff25001727fc9d8febf7637ee54b
parent1c6805c759da9bdc20029a888ee1f2d2e23fcbc3
parserTests: Use "fallback" skin unless otherwise specified

ParserOutput::getText() depends on the current skin to format edit
section links, which some (e.g. MinervaNeue) have customized. This
causes parser tests to fail when they expect the default edit section
link format.

Default to always using the built-in fallback skin when parsing, but
allow it to be overridden with a "skin=..." option.

We also have to override $wgOut in addition to the main RequestContext
since that's what ParserOutput uses.

Bug: T170880
Change-Id: Ib7f0bd15dd0a9255e1e5140907e800478b658b92
tests/parser/ParserTestRunner.php