X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlTest.php;h=5d83b7eb5bb3ce5e1fd485e634908ad431ae36d1;hp=999e0bb56c0d0a5de825d0745baf402f1d0a8d38;hb=dfec83932fd38a9086eb5a2e212889ad00f35b0e;hpb=3a026473873ac3cc9d5c181f05961f474495d32c diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index 999e0bb56c..5d83b7eb5b 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -316,7 +316,7 @@ class HtmlTest extends MediaWikiTestCase { /** * How do we handle duplicate keys in HTML attributes expansion? - * We could pass a "class" the values: 'GREEN' and array( 'GREEN' => false ) + * We could pass a "class" the values: 'GREEN' and [ 'GREEN' => false ] * The latter will take precedence. * * Feature added by r96188 @@ -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.' + ); } /**