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

File

core/modules/link/tests/link.validate.test, line 162
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 testValidateNewsgroupLink() {
  $valid = link_validate_url('news:comp.info-systems.www.misc');
  $this->assertEqual(LINK_NEWS, $valid, 'Make sure link to newsgroup validates as news.');
}