function LinkValidateUrlLight::testValidateEmailLinkBad in Link 6.2
File
- tests/
link.validate.test, line 415 - Tests that exercise the validation functions in the link module.
Class
- LinkValidateUrlLight
- A series of tests of links, only going against the link_validate_url function in link.module.
Code
function testValidateEmailLinkBad() {
$valid = link_validate_url(':bob@example.com');
$this
->assertEqual(FALSE, $valid, 'Make sure just a bad address is correctly failed');
}