You are here

function LinkValidateUrlLight::testValidateNewsgroupLink in Link 6.2

File

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