protected function XmlSitemapTestBase::assertSitemapLinkVisible in XML sitemap 8
Same name and namespace in other branches
- 2.x tests/src/Functional/XmlSitemapTestBase.php \Drupal\Tests\xmlsitemap\Functional\XmlSitemapTestBase::assertSitemapLinkVisible()
Assert Sitemap Link Visible.
1 call to XmlSitemapTestBase::assertSitemapLinkVisible()
- XmlSitemapUserFunctionalTest::testBlockedUser in tests/
src/ Functional/ XmlSitemapUserFunctionalTest.php - Test sitemap link for a blocked user.
File
- tests/
src/ Functional/ XmlSitemapTestBase.php, line 228
Class
- XmlSitemapTestBase
- Helper test class with some added functions for testing.
Namespace
Drupal\Tests\xmlsitemap\FunctionalCode
protected function assertSitemapLinkVisible($entity_type, $entity_id) {
$link = $this->linkStorage
->load($entity_type, $entity_id);
$this
->assertTrue($link && $link['access'] && $link['status'], t('Sitemap link @type @id is visible.', [
'@type' => $entity_type,
'@id' => $entity_id,
]));
}