You are here

function DrupalSolrMatchTestCase::setUp in Apache Solr Search 6

Same name and namespace in other branches
  1. 6.2 tests/solr_index_and_search.test \DrupalSolrMatchTestCase::setUp()

Implementation setUp().

Overrides DrupalWebTestCase::setUp

File

tests/solr_index_and_search.test, line 23
Tests for the apachsolr module: index and search.

Class

DrupalSolrMatchTestCase
@file Tests for the apachsolr module: index and search.

Code

function setUp() {

  //We run this pre-setup in case the user wants to use a different solr location for testing than the default
  $this->solr = apachesolr_get_solr(variable_get('apachesolr_host', 'localhost'), variable_get('apachesolr_port', 8983), variable_get('apachesolr_path', '/solr'));
  parent::setUp('apachesolr', 'apachesolr_search');
}