mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/12732] Add unit tests for ALPHA_PUNCTUATION
PHPBB3-12732
This commit is contained in:
parent
352f3b7e78
commit
9b85e4b141
@ -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',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user