You are here

function LinkValidateUrlLight::testValidateBadNewsgroupLink in Link 6.2

File

tests/link.validate.test, line 430
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 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.');
}