You are here

public function LinkValidationApiTest::testValidateNewsgroupLink in Link 7

Validate Newsgroup Link.

File

tests/LinkValidationApiTest.test, line 137
Validate the link_validate_url() validation API.

Class

LinkValidationApiTest
Validate the link_validate_url() validation API.

Code

public function testValidateNewsgroupLink() {
  $valid = link_validate_url('news:comp.infosystems.www.misc');
  $this
    ->assertEqual(LINK_NEWS, $valid, 'Make sure link to newsgroup validates as news.');
}