aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/content/WikitextContentHandlerTest.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2023-08-02 17:48:18 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2023-08-02 17:48:18 +0000
commit549961495bf2a5994eb4a4b5713e69929bc55114 (patch)
treed66083624e69fc42baf571ff64c26b8346c5849e /tests/phpunit/includes/content/WikitextContentHandlerTest.php
parent25bcb5965310d7e4c0fca9fb0ea6ab8153a11490 (diff)
parente22d93a6bb2aa4e7a08c7cb3f0eed2b4856d3968 (diff)
downloadmediawikicore-549961495bf2a5994eb4a4b5713e69929bc55114.tar.gz
mediawikicore-549961495bf2a5994eb4a4b5713e69929bc55114.zip
Merge "Hard-deprecate ParserOutput::{get,set}Flag()"
Diffstat (limited to 'tests/phpunit/includes/content/WikitextContentHandlerTest.php')
-rw-r--r--tests/phpunit/includes/content/WikitextContentHandlerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/phpunit/includes/content/WikitextContentHandlerTest.php b/tests/phpunit/includes/content/WikitextContentHandlerTest.php
index c90b8895d3bd..cbe7b4ff3df9 100644
--- a/tests/phpunit/includes/content/WikitextContentHandlerTest.php
+++ b/tests/phpunit/includes/content/WikitextContentHandlerTest.php
@@ -3,6 +3,7 @@
use MediaWiki\Linker\LinkTarget;
use MediaWiki\MainConfigNames;
use MediaWiki\Page\PageReferenceValue;
+use MediaWiki\Parser\ParserOutputFlags;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
@@ -312,6 +313,8 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
ParserOptions::newFromAnon()
);
- $this->assertTrue( $contentRenderer->getParserOutput( $pstContent, $pageObj )->getFlag( 'user-signature' ) );
+ $this->assertTrue( $contentRenderer->getParserOutput( $pstContent, $pageObj )->getOutputFlag(
+ ParserOutputFlags::USER_SIGNATURE
+ ) );
}
}