aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/parser/ParserOutputTest.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2024-02-21 17:11:00 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2024-02-21 17:11:00 +0000
commita62f5c791129136c769b8d1e33ad06583f8277f4 (patch)
tree8cd1a40b9214f6d9d62198c2a2d2a80057faba7b /tests/phpunit/includes/parser/ParserOutputTest.php
parent9a9f8b67951a0737cb94912d78508067ab1e53eb (diff)
parent72c4945a724267ba65d3df08ea34bbbf1aa59aa7 (diff)
downloadmediawikicore-a62f5c791129136c769b8d1e33ad06583f8277f4.tar.gz
mediawikicore-a62f5c791129136c769b8d1e33ad06583f8277f4.zip
Merge "[ParserOutput] Rename $mText to $mRawText and ::setText() to ::setRawText()"
Diffstat (limited to 'tests/phpunit/includes/parser/ParserOutputTest.php')
-rw-r--r--tests/phpunit/includes/parser/ParserOutputTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/parser/ParserOutputTest.php b/tests/phpunit/includes/parser/ParserOutputTest.php
index e26d30f26cd8..05875bf48e1b 100644
--- a/tests/phpunit/includes/parser/ParserOutputTest.php
+++ b/tests/phpunit/includes/parser/ParserOutputTest.php
@@ -232,7 +232,7 @@ class ParserOutputTest extends MediaWikiLangTestCase {
public function testWrapperDivClass() {
$po = new ParserOutput();
- $po->setText( 'Kittens' );
+ $po->setRawText( 'Kittens' );
$this->assertStringContainsString( 'Kittens', $po->getText() );
$this->assertStringNotContainsString( '<div', $po->getText() );
$this->assertSame( 'Kittens', $po->getRawText() );
@@ -489,11 +489,11 @@ EOF
$this->assertTrue( $po->hasText() );
$po = new ParserOutput( null );
- $po->setText( '' );
+ $po->setRawText( '' );
$this->assertTrue( $po->hasText() );
$po = new ParserOutput( 'foo' );
- $po->setText( null );
+ $po->setRawText( null );
$this->assertFalse( $po->hasText() );
}