mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:21:43 +02:00
[ticket/12514] Add a few additional tests for type_dropdown
PHPBB3-12514
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user