1.20.x link.validate.test | LinkValidateUnitTest::testValidateEmailLinkBad() |
File
- modules/
link/ tests/ link.validate.test, line 156 - Tests that exercise the validation functions in the link module.
Class
- LinkValidateUnitTest
- 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');
}