You are here

protected function SearchApiSolrTest::commonSolrBackendSetUp in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::commonSolrBackendSetUp()
  2. 8.2 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 106

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');
}