You are here

protected function XMLSitemapTestHelper::assertNoRawSitemapLinks in XML sitemap 7.2

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

Assert No Raw Sitemap Links.

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

File

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

Class

XMLSitemapTestHelper
Helper test class with some added functions for testing.

Code

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