You are here

protected function XMLSitemapTestHelper::assertRawSitemapLinks in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap.test \XMLSitemapTestHelper::assertRawSitemapLinks()
1 call to XMLSitemapTestHelper::assertRawSitemapLinks()
XMLSitemapI18nTest::testLanguageSelection in xmlsitemap_i18n/xmlsitemap_i18n.test

File

./xmlsitemap.test, line 167
Unit tests for the xmlsitemap module.

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,
    )));
  }
}