1.20.x link.validate.test | LinkValidateUnitTest::testValidateBadNewsgroupLink() |
File
- modules/
link/ tests/ link.validate.test, line 171 - 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 testValidateBadNewsgroupLink() {
$valid = link_validate_url('news:comp.bad_name.misc');
$this->assertEqual(FALSE, $valid, 'newsgroup names can\'t contain underscores, so it should come back as invalid.');
}