X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FWikitextStructureTest.php;h=f1b54f6abec5927ff658eb2c526cd850a70a3fab;hp=4301fb8c356c0d29199ed731bae4851cf433e28b;hb=5544cef16b6fdf1a69230ba02cfa4417f18e7cf2;hpb=cfad9f3cbf53d07547e2665c98639ad4e99eead4 diff --git a/tests/phpunit/includes/content/WikitextStructureTest.php b/tests/phpunit/includes/content/WikitextStructureTest.php index 4301fb8c35..f1b54f6abe 100644 --- a/tests/phpunit/includes/content/WikitextStructureTest.php +++ b/tests/phpunit/includes/content/WikitextStructureTest.php @@ -8,7 +8,7 @@ class WikitextStructureTest extends MediaWikiLangTestCase { /** * Get parser output for Wiki text - * @param $text + * @param string $text * @return ParserOutput */ private function getParserOutput( $text ) { @@ -18,7 +18,7 @@ class WikitextStructureTest extends MediaWikiLangTestCase { /** * Get WikitextStructure for given text - * @param $text + * @param string $text * @return WikiTextStructure */ private function getStructure( $text ) { @@ -49,6 +49,19 @@ END; $this->assertContains( "Wikitext in Heading and also html", $headings ); } + public function testDefaultSort() { + $text = <<getStructure( $text ); + $this->assertEquals( "Michel, Louise", $struct->getDefaultSort() ); + } + public function testHeadingsFirst() { $text = <<