aboutsummaryrefslogtreecommitdiffstats
path: root/tests/profilefields
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-20 23:36:26 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-20 23:36:26 +0200
commit8595fee0401c66511d508fd2d2f0a69609ce5770 (patch)
tree87be100e0a750035d8df999e4d457f9f2efb0f81 /tests/profilefields
parenta5ca7479b24a1e7ba954f13c80f26d466b80237e (diff)
parentaeeaf2f6efc79ca407cf8872b1538902b93c2236 (diff)
downloadforums-8595fee0401c66511d508fd2d2f0a69609ce5770.tar
forums-8595fee0401c66511d508fd2d2f0a69609ce5770.tar.gz
forums-8595fee0401c66511d508fd2d2f0a69609ce5770.tar.bz2
forums-8595fee0401c66511d508fd2d2f0a69609ce5770.tar.xz
forums-8595fee0401c66511d508fd2d2f0a69609ce5770.zip
Merge pull request #2611 from Dragooon/ticket/12729
[ticket/12729] Add Facebook custom profile field * Dragooon/ticket/12729: [ticket/12729] Add functional test for Facebook field [ticket/12730] Values needn't be escaped for schema_data.sql [ticket/12729] Set field_active as 1 for Facebook profile field [ticket/12729] Add unit test for ALPHA_DOTS validation [ticket/12729] Move ALPHA_DOTS to above ALPHA_SPACERS [ticket/12729] Convert spaces to tabs [ticket/12729] Fix block header spacing for profilefield_facebook.php [ticket/12729] Update schema.json [ticket/12729] Unnecessary whitespace in profilefield_facebook.php [ticket/12729] Cleanup schema_data.sql for Facebook field [ticket/12729] Add Facebook custom profile field
Diffstat (limited to 'tests/profilefields')
-rw-r--r--tests/profilefields/type_string_test.php12
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',
+ ),
);
}