aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions_acp/build_cfg_template_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-11-06 10:20:05 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-11-06 10:20:05 +0100
commitaca6e64669079abc385f3094d8b6c186d9b46082 (patch)
treec1470fdb697be918ae4247e405946afcd9fe1055 /tests/functions_acp/build_cfg_template_test.php
parent8dbf3976fd40b295175a34a2605571b0786385db (diff)
downloadforums-aca6e64669079abc385f3094d8b6c186d9b46082.tar
forums-aca6e64669079abc385f3094d8b6c186d9b46082.tar.gz
forums-aca6e64669079abc385f3094d8b6c186d9b46082.tar.bz2
forums-aca6e64669079abc385f3094d8b6c186d9b46082.tar.xz
forums-aca6e64669079abc385f3094d8b6c186d9b46082.zip
[ticket/14272] Only use maxlength and size for allowed input elements
PHPBB3-14272
Diffstat (limited to 'tests/functions_acp/build_cfg_template_test.php')
-rw-r--r--tests/functions_acp/build_cfg_template_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functions_acp/build_cfg_template_test.php b/tests/functions_acp/build_cfg_template_test.php
index a8d7ae6f09..2e3a8adac7 100644
--- a/tests/functions_acp/build_cfg_template_test.php
+++ b/tests/functions_acp/build_cfg_template_test.php
@@ -68,7 +68,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case
array('config_key_name_width' => 10, 'config_key_name_height' => 20),
'config_key_name',
array(),
- '<input id="number_key_name" type="number" size="2" maxlength="2" min="5" max="15" name="config[config_key_name_width]" value="10" /> x <input type="number" size="2" maxlength="2" min="5" max="15" name="config[config_key_name_height]" value="20" />',
+ '<input id="number_key_name" type="number" min="5" max="15" name="config[config_key_name_width]" value="10" /> x <input type="number" min="5" max="15" name="config[config_key_name_height]" value="20" />',
),
array(
array('dimension', 0, 15),
@@ -76,7 +76,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case
array('config_key_name_width' => 10, 'config_key_name_height' => 20),
'config_key_name',
array(),
- '<input id="number_key_name" type="number" size="2" maxlength="2" min="0" max="15" name="config[config_key_name_width]" value="10" /> x <input type="number" size="2" maxlength="2" min="0" max="15" name="config[config_key_name_height]" value="20" />',
+ '<input id="number_key_name" type="number" min="0" max="15" name="config[config_key_name_width]" value="10" /> x <input type="number" min="0" max="15" name="config[config_key_name_height]" value="20" />',
),
);
}
@@ -104,7 +104,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case
array('config_key_name' => 10),
'config_key_name',
array(),
- '<input id="number_key_name" type="number" maxlength="2" min="5" max="15" name="config[config_key_name]" value="10" />',
+ '<input id="number_key_name" type="number" min="5" max="15" name="config[config_key_name]" value="10" />',
),
array(
array('number', -1, 9999),
@@ -112,7 +112,7 @@ class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case
array('config_key_name' => 10),
'config_key_name',
array(),
- '<input id="number_key_name" type="number" maxlength="4" min="-1" max="9999" name="config[config_key_name]" value="10" />',
+ '<input id="number_key_name" type="number" min="-1" max="9999" name="config[config_key_name]" value="10" />',
),
);
}