X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlTest.php;h=47217939bf39d87e1adbe8afe5ccdc9a1f71ebab;hb=5f1a4a3dfc049a742184d5690d211fb0321c9b9d;hp=a01f2f5c5b02cdfad64b82d9a7901ff023ef727c;hpb=7f6094c2f86064ff239ba487ce1951b6190a555c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index a01f2f5c5b..47217939bf 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -46,7 +46,7 @@ class HtmlTest extends MediaWikiTestCase { $this->assertEquals( '', Html::element( 'img', null, '' ), - 'No close tag for short-tag elements' + 'Self-closing tag for short-tag elements' ); $this->assertEquals( @@ -60,12 +60,6 @@ class HtmlTest extends MediaWikiTestCase { Html::element( 'element', [], '' ), 'Close tag for empty element (array, string)' ); - - $this->assertEquals( - '', - Html::element( 'img', null, '' ), - 'Self-closing tag for short-tag elements' - ); } public function dataXmlMimeType() { @@ -140,12 +134,6 @@ class HtmlTest extends MediaWikiTestCase { Html::expandAttributes( [ 'selected' ] ), 'Boolean attributes have no value when value is true (passed as numerical array)' ); - - $this->assertEquals( - ' selected=""', - Html::expandAttributes( [ 'selected' => true ] ), - 'Boolean attributes have empty string value when value is true' - ); } /**