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_dropdown
PHPBB3-12514
This commit is contained in:
parent
566f76a6b0
commit
9f478de2ca
1 changed files with 12 additions and 0 deletions
|
@ -82,6 +82,18 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case
|
|||
'FIELD_INVALID_VALUE-field',
|
||||
'Invalid value should throw error',
|
||||
),
|
||||
array(
|
||||
true,
|
||||
array('field_required' => true),
|
||||
false,
|
||||
'Boolean would evaluate to 1 and hence correct value',
|
||||
),
|
||||
array(
|
||||
'string',
|
||||
array('field_required' => true),
|
||||
'FIELD_REQUIRED-field',
|
||||
'String should be rejected for value',
|
||||
),
|
||||
array(
|
||||
2,
|
||||
array(),
|
||||
|
|
Loading…
Add table
Reference in a new issue