diff options
author | Shitiz Garg <mail@dragooon.net> | 2014-06-20 18:12:26 +0530 |
---|---|---|
committer | Shitiz Garg <mail@dragooon.net> | 2014-06-20 18:12:26 +0530 |
commit | fc6cb02e1fa02755a10d193bebd8f5ad0fa451ab (patch) | |
tree | 1c8560d1865dd000c7f521aaaf72f82decafac4f /tests/profilefields | |
parent | 5701a4658cfb293d15a3027d9704f335904a4d0c (diff) | |
download | forums-fc6cb02e1fa02755a10d193bebd8f5ad0fa451ab.tar forums-fc6cb02e1fa02755a10d193bebd8f5ad0fa451ab.tar.gz forums-fc6cb02e1fa02755a10d193bebd8f5ad0fa451ab.tar.bz2 forums-fc6cb02e1fa02755a10d193bebd8f5ad0fa451ab.tar.xz forums-fc6cb02e1fa02755a10d193bebd8f5ad0fa451ab.zip |
[ticket/12729] Add unit test for ALPHA_DOTS validation
PHPBB3-12729
Diffstat (limited to 'tests/profilefields')
-rw-r--r-- | tests/profilefields/type_string_test.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/profilefields/type_string_test.php b/tests/profilefields/type_string_test.php index d9a7369b94..97d024fbaa 100644 --- a/tests/profilefields/type_string_test.php +++ b/tests/profilefields/type_string_test.php @@ -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', + ), ); } |