You are here

function DrupalSolrQueryBreadcrumbTests::testBreadcrumbsClean in Apache Solr Search 5

File

tests/solr_base_query_breadcrumb.test, line 64

Class

DrupalSolrQueryBreadcrumbTests

Code

function testBreadcrumbsClean() {
  $result = TRUE;
  $prefix_re = '/\\w+:/';
  foreach ($this->breadcrumb as $item) {
    $this
      ->assertTrue(preg_match($prefix_re, strip_tags($item)) == 0, 'Field prefixes like "uid:" should be stripped from the breadcrumbs.');
  }
  return $result;
}