protected function XMLSitemapTestHelper::assertSitemapLinkNotVisible in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.test \XMLSitemapTestHelper::assertSitemapLinkNotVisible()
1 call to XMLSitemapTestHelper::assertSitemapLinkNotVisible()
- XMLSitemapUserFunctionalTest::testBlockedUser in xmlsitemap_user/
xmlsitemap_user.test
File
- ./
xmlsitemap.test, line 124 - Unit tests for the xmlsitemap module.
Class
- XMLSitemapTestHelper
- Helper test class with some added functions for testing.
Code
protected function assertSitemapLinkNotVisible($entity_type, $entity_id) {
$link = xmlsitemap_link_load($entity_type, $entity_id);
$this
->assertTrue($link && !($link['access'] && $link['status']), t('Sitemap link @type @id is not visible.', array(
'@type' => $entity_type,
'@id' => $entity_id,
)));
}