mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/12732] Add unit tests for ALPHA_PUNCTUATION
PHPBB3-12732
This commit is contained in:
@@ -143,6 +143,18 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
|
||||
false,
|
||||
'Required field should accept a characters only field',
|
||||
),
|
||||
array(
|
||||
'skype.test.name,_this',
|
||||
array('field_validation' => '[a-zA-Z][\w\.,\-_]+'),
|
||||
false,
|
||||
'Required field should accept alphanumeric field with punctuations',
|
||||
),
|
||||
array(
|
||||
'1skype.this.should.faila',
|
||||
array('field_validation' => '[a-zA-Z][\w\.,\-_]+'),
|
||||
'FIELD_INVALID_CHARS_ALPHA_PUNCTUATION-field',
|
||||
'Required field should reject field having invalid input for the given validation',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user