public function LinkValidationApiTest::testValidateBadNewsgroupLink in Link 7
Validate Bad Newsgroup Link.
File
- tests/
LinkValidationApiTest.test, line 153 - Validate the link_validate_url() validation API.
Class
- LinkValidationApiTest
- Validate the link_validate_url() validation API.
Code
public 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.');
}