mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12514] Add a few more validation cases for type_string_test
PHPBB3-12514
This commit is contained in:
parent
d38816fc14
commit
80d9e4b2e3
1 changed files with 24 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue