protected function XmlSitemapTestBase::assertRawSitemapLinks in XML sitemap 8
Same name and namespace in other branches
- 2.x tests/src/Functional/XmlSitemapTestBase.php \Drupal\Tests\xmlsitemap\Functional\XmlSitemapTestBase::assertRawSitemapLinks()
Assert Raw Sitemap Links.
1 call to XmlSitemapTestBase::assertRawSitemapLinks()
- XmlSitemapMultilingualTest::testLanguageSelection in tests/
src/ Functional/ XmlSitemapMultilingualTest.php - Test Language Selection.
File
- tests/
src/ Functional/ XmlSitemapTestBase.php, line 306
Class
- XmlSitemapTestBase
- Helper test class with some added functions for testing.
Namespace
Drupal\Tests\xmlsitemap\FunctionalCode
protected function assertRawSitemapLinks() {
$links = func_get_args();
foreach ($links as $link) {
$path = Url::fromUri('internal:' . $link['loc'], [
'language' => xmlsitemap_language_load($link['language']),
'absolute' => TRUE,
])
->toString();
$this
->assertSession()
->responseContains($link['loc']);
}
}