You are here

public function SearchApiSolrTest::setUp in Search API Solr 8

Overrides BackendTestBase::setUp

File

tests/src/Kernel/SearchApiSolrTest.php, line 76

Class

SearchApiSolrTest
Tests index and search capabilities using the Solr search backend.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig([
    'search_api_solr',
    'search_api_solr_test',
  ]);
  $this
    ->detectSolrAvailability();
  $this->fieldsHelper = \Drupal::getContainer()
    ->get('search_api.fields_helper');
}