You are here

function DrupalSolrQueryBreadcrumbTests::setUp in Apache Solr Search 5

File

tests/solr_base_query_breadcrumb.test, line 13

Class

DrupalSolrQueryBreadcrumbTests

Code

function setUp() {
  parent::setUp();
  $types = node_get_types('types');
  shuffle($types);
  $type = array_pop($types);
  $this->query_string = "sudo tid:44 uid:46 type:" . $type->type . ' tid:58';
  $query =& apachesolr_drupal_query($this->query_string, TRUE);
  $this->breadcrumb = $query
    ->get_breadcrumb();
  $this->menu_active_breadcrumb = menu_get_active_breadcrumb();
}