mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 03:19:01 +01:00
[ticket/12334] Add additional test for type_string
PHPBB3-12334
This commit is contained in:
parent
8cb7afa503
commit
e6f9b060dc
@ -243,6 +243,30 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
|
||||
'[b]bbcode test[/b]',
|
||||
'Field should return correct raw value',
|
||||
),
|
||||
array(
|
||||
125,
|
||||
array('field_show_novalue' => false),
|
||||
125,
|
||||
'Field should return value of integer as is',
|
||||
),
|
||||
array(
|
||||
0,
|
||||
array('field_show_novalue' => false),
|
||||
null,
|
||||
'Field should return null for empty integer without show_novalue',
|
||||
),
|
||||
array(
|
||||
0,
|
||||
array('field_show_novalue' => true),
|
||||
0,
|
||||
'Field should return 0 for empty integer with show_novalue',
|
||||
),
|
||||
array(
|
||||
null,
|
||||
array('field_show_novalue' => true),
|
||||
null,
|
||||
'field should return null value as is',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user