class LinkValidateTestNews in Link 6.2
Hierarchy
- class \LinkValidateTestCase extends \ContentCrudTestCase
- class \LinkValidateTestNews
Expanded class hierarchy of LinkValidateTestNews
File
- tests/
link.validate.test, line 298 - Tests that exercise the validation functions in the link module.
View source
class LinkValidateTestNews extends LinkValidateTestCase {
function getInfo() {
return array(
'name' => t('Link News Validation Tests'),
'description' => t('Tests the field validation for usenet urls.'),
'group' => t('Link'),
);
}
// Validate a news link to a message group
function test_link_news() {
$this
->link_test_validate_url('news:comp.infosystems.www.misc');
}
// Validate a news link to a message id. Said ID copied off of google groups.
function test_link_news_message() {
$this
->link_test_validate_url('news:hj0db8$vrm$1@news.eternal-september.org');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkValidateTestCase:: |
public | property | ||
LinkValidateTestCase:: |
function | |||
LinkValidateTestCase:: |
function | Takes a url, and sees if it can validate that the url is valid. | ||
LinkValidateTestCase:: |
function | |||
LinkValidateTestNews:: |
function | |||
LinkValidateTestNews:: |
function | |||
LinkValidateTestNews:: |
function |