protected function XMLSitemapTestHelper::assertSitemapLinkNotVisible in XML sitemap 7.2
Same name and namespace in other branches
- 6.2 xmlsitemap.test \XMLSitemapTestHelper::assertSitemapLinkNotVisible()
Assert Sitemap Link Not Visible.
1 call to XMLSitemapTestHelper::assertSitemapLinkNotVisible()
- XMLSitemapUserFunctionalTest::testBlockedUser in xmlsitemap_user/
xmlsitemap_user.test - Blocked User().
File
- ./
xmlsitemap.test, line 147 - Unit tests for the xmlsitemap.
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,
)));
}