1 link.validate.test LinkValidateUnitTest::testValidateBadNewsgroupLink()

File

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