mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +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 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(
|
||||
'tas',
|
||||
array('field_minlen' => 2, 'field_maxlen' => 5),
|
||||
|
Reference in New Issue
Block a user