From cdb3fe77bc8b4eceff6dc27c591ccb0fa3f7c1c4 Mon Sep 17 00:00:00 2001 From: Habibillah Ali Date: Fri, 19 Apr 2019 21:55:09 +0700 Subject: [PATCH] add minlength as valid attribute for textarea --- src/View/Helper/FormTextarea.php | 1 + test/View/Helper/FormTextareaTest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/View/Helper/FormTextarea.php b/src/View/Helper/FormTextarea.php index feb2a9d2..3051ebe2 100644 --- a/src/View/Helper/FormTextarea.php +++ b/src/View/Helper/FormTextarea.php @@ -27,6 +27,7 @@ class FormTextarea extends AbstractHelper 'disabled' => true, 'form' => true, 'maxlength' => true, + 'minlength' => true, 'name' => true, 'placeholder' => true, 'readonly' => true, diff --git a/test/View/Helper/FormTextareaTest.php b/test/View/Helper/FormTextareaTest.php index 69269777..38da0f76 100644 --- a/test/View/Helper/FormTextareaTest.php +++ b/test/View/Helper/FormTextareaTest.php @@ -115,6 +115,7 @@ public function validAttributes() ['disabled', 'assertContains'], ['form', 'assertContains'], ['maxlength', 'assertContains'], + ['minlength', 'assertContains'], ['name', 'assertContains'], ['placeholder', 'assertContains'], ['readonly', 'assertContains'], @@ -211,6 +212,7 @@ public function getCompleteElement() 'disabled' => 'disabled', 'form' => 'value', 'maxlength' => 'value', + 'minlength' => 'value', 'name' => 'value', 'placeholder' => 'value', 'readonly' => 'readonly',