[ticket/12514] Add a few additional tests for type_dropdown

PHPBB3-12514
This commit is contained in:
Shitiz Garg 2014-06-18 15:34:06 +05:30
parent 566f76a6b0
commit 9f478de2ca

View file

@ -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(),