You are here

protected function XMLSitemapTestHelper::assertRawSitemapLinks in XML sitemap 7.2

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

Assert Raw Sitemap Links.

1 call to XMLSitemapTestHelper::assertRawSitemapLinks()
XMLSitemapI18nTest::testLanguageSelection in xmlsitemap_i18n/xmlsitemap_i18n.test
Language Selection.

File

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

Class

XMLSitemapTestHelper
Helper test class with some added functions for testing.

Code

protected function assertRawSitemapLinks() {
  $links = func_get_args();
  foreach ($links as $link) {
    $path = url($link['loc'], array(
      'language' => xmlsitemap_language_load($link['language']),
      'absolute' => TRUE,
    ));
    $this
      ->assertRaw($link['loc'], t('Link %path found in the sitemap.', array(
      '%path' => $path,
    )));
  }
}