X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlTest.php;h=b7249e5d9466a14cda5ef965be37244c463aa993;hb=ea23bc97ee9144c4575fa0bab81a42faa2b1f29c;hp=e2ee19341669ad8795c90ee4e445eb53beecc8a0;hpb=ea60bd7c46f2ccc866829f06919ad87e5ca9de53;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index e2ee193416..b7249e5d94 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -633,35 +633,6 @@ class HtmlTest extends MediaWikiTestCase { return $ret; } - /** - * @covers Html::expandAttributes - */ - public function testFormValidationBlacklist() { - $this->assertEmpty( - Html::expandAttributes( [ - 'min' => 1, - 'max' => 100, - 'pattern' => 'abc', - 'required' => true, - 'step' => 2 - ] ), - 'Blacklist form validation attributes.' - ); - $this->assertEquals( - ' step="any"', - Html::expandAttributes( - [ - 'min' => 1, - 'max' => 100, - 'pattern' => 'abc', - 'required' => true, - 'step' => 'any' - ], - 'Allow special case "step=any".' - ) - ); - } - public function testWrapperInput() { $this->assertEquals( '',