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