X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FWikitextContentTest.php;h=2fc7794b78d45c3f12c6cc73a113a4b4ed8b53b6;hb=34c498088e6f61fe8b0474450a8a66d7965d649e;hp=be935631688ea51722f18a2cd52c062e71a75016;hpb=32d29b4a681048009d9ce2f986a6ad737b07cc94;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index be93563168..2fc7794b78 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -130,7 +130,7 @@ just a test" $sectionContent = $content->getSection( $sectionId ); if ( is_object( $sectionContent ) ) { - $sectionText = $sectionContent->getNativeData(); + $sectionText = $sectionContent->getText(); } else { $sectionText = $sectionContent; } @@ -184,7 +184,7 @@ just a test" $content = $this->newContent( $text ); $c = $content->replaceSection( $section, $this->newContent( $with ), $sectionTitle ); - $this->assertEquals( $expected, is_null( $c ) ? null : $c->getNativeData() ); + $this->assertEquals( $expected, is_null( $c ) ? null : $c->getText() ); } /** @@ -194,7 +194,7 @@ just a test" $content = $this->newContent( 'hello world' ); $content = $content->addSectionHeader( 'test' ); - $this->assertEquals( "== test ==\n\nhello world", $content->getNativeData() ); + $this->assertEquals( "== test ==\n\nhello world", $content->getText() ); } public static function dataPreSaveTransform() { @@ -360,6 +360,10 @@ just a test" $this->assertEquals( CONTENT_MODEL_WIKITEXT, $content->getContentHandler()->getModelID() ); } + /** + * @covers ParserOptions::getRedirectTarget + * @covers ParserOptions::setRedirectTarget + */ public function testRedirectParserOption() { $title = Title::newFromText( 'testRedirectParserOption' );