You are here

protected function SearchApiSolrTest::commonSolrBackendSetUp in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::commonSolrBackendSetUp()
  2. 4.x tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::commonSolrBackendSetUp()

Required parts of the setUp() function that are the same for all backends.

Overrides SolrBackendTestBase::commonSolrBackendSetUp

File

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

Class

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

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

protected function commonSolrBackendSetUp() {
  parent::commonSolrBackendSetUp();
  $this
    ->installEntitySchema('user');
  $this->fieldsHelper = \Drupal::getContainer()
    ->get('search_api.fields_helper');
}