From 154e9a444c63fa698b9de323f6b8d79c73dd20c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 24 Oct 2023 03:33:44 +0200 Subject: tests: Use fallback skin for ParserOutput/DefaultOutputTransform tests This matches the behavior of parserTests.txt again (in which the fallback skin is used by ParserTestRunner::runLegacyTest). The extra wrappers were added by the Vector skin (and could be affected by future changes to the Vector skin). Follow-up to Ief6a6ee03ada8207fc5c60ea438412fa2d529022. Change-Id: I33729b5026fcfbdbacc0e3fdfef91c9e6b461e6c --- tests/phpunit/includes/parser/ParserOutputTest.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'tests/phpunit/includes/parser/ParserOutputTest.php') diff --git a/tests/phpunit/includes/parser/ParserOutputTest.php b/tests/phpunit/includes/parser/ParserOutputTest.php index 0c7ae1a4b37b..88aa712e42ab 100644 --- a/tests/phpunit/includes/parser/ParserOutputTest.php +++ b/tests/phpunit/includes/parser/ParserOutputTest.php @@ -279,6 +279,10 @@ class ParserOutputTest extends MediaWikiLangTestCase { * @param string $expect Expected output */ public function testGetText( $options, $text, $expect ) { + // Avoid other skins affecting the section edit links + $this->overrideConfigValue( MainConfigNames::DefaultSkin, 'fallback' ); + RequestContext::resetMain(); + $this->overrideConfigValues( [ MainConfigNames::ArticlePath => '/wiki/$1', MainConfigNames::ScriptPath => '/w', @@ -377,16 +381,16 @@ EOF; -

Section 1[edit]

+

Section 1[edit]

One

-

Section 2[edit]

+

Section 2[edit]

Two

Section 2.1

Two point one

-

Section 3[edit]

+

Section 3[edit]

Three

EOF @@ -426,16 +430,16 @@ EOF

Test document.

-

Section 1[edit]

+

Section 1[edit]

One

-

Section 2[edit]

+

Section 2[edit]

Two

Section 2.1

Two point one

-

Section 3[edit]

+

Section 3[edit]

Three

EOF -- cgit v1.2.3