mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12514] Add a few additional tests for type_int
PHPBB3-12514
This commit is contained in:
parent
e820143e87
commit
566f76a6b0
1 changed files with 18 additions and 0 deletions
|
@ -136,6 +136,24 @@ class phpbb_profilefield_type_int_test extends phpbb_test_case
|
||||||
'FIELD_TOO_SMALL-10-field',
|
'FIELD_TOO_SMALL-10-field',
|
||||||
'Field should reject value which is less than defined minimum',
|
'Field should reject value which is less than defined minimum',
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
true,
|
||||||
|
array('field_maxlen' => 20),
|
||||||
|
false,
|
||||||
|
'Field should accept correct boolean value',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'string',
|
||||||
|
array('field_maxlen' => 10, 'field_required' => true),
|
||||||
|
false,
|
||||||
|
'Field should accept correct string value',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
null,
|
||||||
|
array('field_minlen' => 1, 'field_maxlen' => 10, 'field_required' => true),
|
||||||
|
'FIELD_TOO_SMALL-1-field',
|
||||||
|
'Field should not accept an empty value',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue