X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlTest.php;h=4401410ef32ba495d300f69bd446e6442c951ade;hb=00e52d96addceb383baa25b9cd5b40b4fa61d9a8;hp=388b914dddc22b9d1f05be17b897b5462bbb7e35;hpb=13d95407dc11293a3a238f66a40db89e502c64b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index 388b914ddd..4401410ef3 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -161,12 +161,12 @@ class HtmlTest extends MediaWikiTestCase { * @covers Html::expandAttributes */ public function testExpandAttributesForBooleans() { - $this->assertEquals( + $this->assertSame( '', Html::expandAttributes( [ 'selected' => false ] ), 'Boolean attributes do not generates output when value is false' ); - $this->assertEquals( + $this->assertSame( '', Html::expandAttributes( [ 'selected' => null ] ), 'Boolean attributes do not generates output when value is null' @@ -481,6 +481,26 @@ class HtmlTest extends MediaWikiTestCase { ), 'Namespace selector namespace filtering.' ); + $this->assertEquals( + '', + Html::namespaceSelector( + [ 'exclude' => [ 0, 1, 3, 100, 101 ], 'all' => '' ] + ), + 'Namespace selector namespace filtering with empty custom "all" option.' + ); } /**