You are here

protected function XMLSitemapTestHelper::assertSitemapLinkVisible in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap.test \XMLSitemapTestHelper::assertSitemapLinkVisible()

Assert Sitemap Link Visible.

1 call to XMLSitemapTestHelper::assertSitemapLinkVisible()
XMLSitemapUserFunctionalTest::testBlockedUser in xmlsitemap_user/xmlsitemap_user.test
Blocked User().

File

./xmlsitemap.test, line 139
Unit tests for the xmlsitemap.

Class

XMLSitemapTestHelper
Helper test class with some added functions for testing.

Code

protected function assertSitemapLinkVisible($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 visible.', array(
    '@type' => $entity_type,
    '@id' => $entity_id,
  )));
}