You are here

public function SearchApiElasticsearchElasticaAdministrationTest::setUp in Search API Elasticsearch 7

Implements setUp().

Overrides DrupalWebTestCase::setUp

File

modules/elastica/tests/functional/search_api_elasticsearch_elastica.test, line 28
Contains basic functionality tests for Search API Elasticsearch/

Class

SearchApiElasticsearchElasticaAdministrationTest
Test administration interface for Search API Elasticsearch Elastica.

Code

public function setUp() {
  $modules = array();
  $modules[] = 'search_api_elasticsearch_elastica';
  if (drupal_load('module', 'composer_manager')) {
    $modules[] = 'composer_manager';
  }
  elseif (drupal_load('module', 'libraries')) {
    $modules[] = 'libraries';
  }
  parent::setUp($modules);
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'administer search_api',
  ));
  $this->unprivileged_user = $this
    ->drupalCreateUser();
}