mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/12514] Add a few more validation cases for type_string_test
PHPBB3-12514
This commit is contained in:
@@ -60,6 +60,30 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
|
|||||||
'FIELD_REQUIRED-field',
|
'FIELD_REQUIRED-field',
|
||||||
'Field should not accept empty values for required fields',
|
'Field should not accept empty values for required fields',
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
null,
|
||||||
|
array('field_required' => true),
|
||||||
|
'FIELD_REQUIRED-field',
|
||||||
|
'Field should not accept empty values for required field',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
0,
|
||||||
|
array('field_required' => true),
|
||||||
|
false,
|
||||||
|
'Field should accept a non-empty input',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'false',
|
||||||
|
array('field_required' => true),
|
||||||
|
false,
|
||||||
|
'Field should accept a non-empty input',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
10,
|
||||||
|
array('field_required' => true),
|
||||||
|
false,
|
||||||
|
'Field should accept a non-empty input',
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'tas',
|
'tas',
|
||||||
array('field_minlen' => 2, 'field_maxlen' => 5),
|
array('field_minlen' => 2, 'field_maxlen' => 5),
|
||||||
|
Reference in New Issue
Block a user