[ticket/12729] Add unit test for ALPHA_DOTS validation

PHPBB3-12729
This commit is contained in:
Shitiz Garg 2014-06-20 18:12:26 +05:30
parent 5701a4658c
commit fc6cb02e1f

View file

@ -143,6 +143,18 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
false, false,
'Required field should accept a characters only field', 'Required field should accept a characters only field',
), ),
array(
'Valid.Username123',
array('field_validation' => '[\w.]+'),
false,
'Required field should accept a alphanumeric field with dots',
),
array(
'Invalid.,username123',
array('field_validation' => '[\w.]+'),
'FIELD_INVALID_CHARS_ALPHA_DOTS-field',
'Required field should reject field with comma',
),
); );
} }