mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12514] Add a few more tests for type_date
PHPBB3-12514
This commit is contained in:
parent
aee20bcf0c
commit
f549a6ce9f
1 changed files with 36 additions and 0 deletions
|
@ -128,6 +128,42 @@ class phpbb_profilefield_type_date_test extends phpbb_test_case
|
||||||
'FIELD_INVALID_DATE-field',
|
'FIELD_INVALID_DATE-field',
|
||||||
'Field should reject value for being invalid',
|
'Field should reject value for being invalid',
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'string',
|
||||||
|
array(),
|
||||||
|
false,
|
||||||
|
'Field should reject value for being invalid',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'string',
|
||||||
|
array('field_required' => true),
|
||||||
|
'FIELD_REQUIRED-field',
|
||||||
|
'Field should reject value for being invalid',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
100,
|
||||||
|
array(),
|
||||||
|
false,
|
||||||
|
'Field should reject value for being invalid',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
100,
|
||||||
|
array('field_required' => true),
|
||||||
|
'FIELD_REQUIRED-field',
|
||||||
|
'Field should reject value for being invalid',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
null,
|
||||||
|
array('field_required' => true),
|
||||||
|
'FIELD_REQUIRED-field',
|
||||||
|
'Field should reject value for being empty',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
true,
|
||||||
|
array('field_required' => true),
|
||||||
|
'FIELD_REQUIRED-field',
|
||||||
|
'Field should reject value for being empty',
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue