Skip to content

Commit 51f528a

Browse files
committed
Use getContentHolderText (works on REL1_43 and master)
1 parent bdfc6fa commit 51f528a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Integration/EmbedFunctionIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testUsageIsTracked(): void {
6060
'{{#embed:https://example.com/KITTENS.md}}',
6161
Title::newFromText( 'EmbedFunctionIntegrationTest' ),
6262
$parserOptions
63-
)->runOutputPipeline( $parserOptions, [] )->getRawText();
63+
)->runOutputPipeline( $parserOptions, [] )->getContentHolderText();
6464

6565
// Since the category name depends on the wiki language, we need to skip this test when it is not English.
6666
if ( MediaWikiServices::getInstance()->getContentLanguage()->getCode() === 'en' ) {

tests/TestEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function parse( string $textToParse, ?Title $contextPage = null ): string
3030
$textToParse,
3131
$contextPage ?? Title::newFromText( 'ContextPage' ),
3232
$parserOptions
33-
)->runOutputPipeline( $parserOptions, [] )->getRawText();
33+
)->runOutputPipeline( $parserOptions, [] )->getContentHolderText();
3434
}
3535

3636
}

0 commit comments

Comments
 (0)