From 36b4ab44f6f8818601aeb3bb39697c3b91ead0e7 Mon Sep 17 00:00:00 2001 From: Isabelle Hurbain-Palatin Date: Tue, 10 Oct 2023 17:05:08 +0200 Subject: Refactor ParserOutput::getText into DefaultOutputTransform service This also introduces the ephemeral field "$mTransformedText" to store the result of transformation in ParserOutput. This is a first step before the transformation uses HtmlHolder as input and output. Bug: T348253 Change-Id: I312f3748ebfb0373ee3542ba0abdeefe7db1d488 --- tests/phpunit/includes/parser/ParserOutputTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (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 1b0bf8292556..9f8b72b57cc2 100644 --- a/tests/phpunit/includes/parser/ParserOutputTest.php +++ b/tests/phpunit/includes/parser/ParserOutputTest.php @@ -270,6 +270,8 @@ class ParserOutputTest extends MediaWikiLangTestCase { } /** + * This test aims at being replaced by its version in DefaultOutputTransformTest when ParserOutput::getText + * gets deprecated. * @covers ParserOutput::getText * @dataProvider provideGetText * @param array $options Options to getText() @@ -485,6 +487,8 @@ EOF } /** + * This test aims at being replaced by its version in DefaultOutputTransformTest when ParserOutput::getText + * gets deprecated. * @covers ParserOutput::getText */ public function testGetText_failsIfNoText() { @@ -522,6 +526,8 @@ EOF } /** + * This test aims at being replaced by its version in DefaultOutputTransformTest when ParserOutput::getText + * gets deprecated. * @dataProvider provideGetText_absoluteURLs */ public function testGetText_absoluteURLs( string $text, string $expectedText ) { -- cgit v1.2.3