function UserValidationTest::testValidCharsName in SimpleTest 5
Same name and namespace in other branches
- 6 tests/user_module.test \UserValidationTest::testValidCharsName()
File
- tests/
user_validation.test, line 20
Class
- UserValidationTest
- This class is based on the original Simpletest Module by Moshe Weitzman
Code
function testValidCharsName() {
$name = 'ab/';
$result = user_validate_name($name);
$this
->assertNotNull($result, 'Invalid chars in username');
}