mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/12729] Add unit test for ALPHA_DOTS validation
PHPBB3-12729
This commit is contained in:
parent
5701a4658c
commit
fc6cb02e1f
1 changed files with 12 additions and 0 deletions
|
@ -143,6 +143,18 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
|
|||
false,
|
||||
'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',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue