You are here

public function LinkValidationApiTest::testValidateNewsArticleLink in Link 7

Validate News Article Link.

File

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

Class

LinkValidationApiTest
Validate the link_validate_url() validation API.

Code

public function testValidateNewsArticleLink() {
  $valid = link_validate_url('news:hj0db8$vrm$1@news.eternal-september.org');
  $this
    ->assertEqual(LINK_NEWS, $valid, 'Make sure link to specific article validates as news.');
}