aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/parser/ParserOutputTest.php
diff options
context:
space:
mode:
authorIsabelle Hurbain-Palatin <ihurbainpalatin@wikimedia.org>2023-10-10 17:05:08 +0200
committerIsabelle Hurbain-Palatin <ihurbainpalatin@wikimedia.org>2023-10-16 13:11:38 +0200
commit36b4ab44f6f8818601aeb3bb39697c3b91ead0e7 (patch)
tree0673513bd28a00e2dad9ec0df44694c39d3415ae /tests/phpunit/includes/parser/ParserOutputTest.php
parent0258088e16489bd7c5cbdac8f25d64c346664244 (diff)
downloadmediawikicore-36b4ab44f6f8818601aeb3bb39697c3b91ead0e7.tar.gz
mediawikicore-36b4ab44f6f8818601aeb3bb39697c3b91ead0e7.zip
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
Diffstat (limited to 'tests/phpunit/includes/parser/ParserOutputTest.php')
-rw-r--r--tests/phpunit/includes/parser/ParserOutputTest.php6
1 files changed, 6 insertions, 0 deletions
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 ) {