You are here

protected function SolrBackendTestBase::indexItems in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::indexItems()
  2. 8.2 tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::indexItems()
8 calls to SolrBackendTestBase::indexItems()
SearchApiSolrLocationTest::commonSolrBackendSetUp in tests/src/Kernel/SearchApiSolrLocationTest.php
Required parts of the setUp() function that are the same for all backends.
SearchApiSolrTest::checkDatasourceAdditionAndDeletion in tests/src/Kernel/SearchApiSolrTest.php
Tests addition and deletion of a data source.
SearchApiSolrTest::checkHighlight in tests/src/Kernel/SearchApiSolrTest.php
Tests highlight options.
SearchApiSolrTest::checkIndexFallback in tests/src/Kernel/SearchApiSolrTest.php
Tests retrieve_data options.
SearchApiSolrTest::checkRetrieveData in tests/src/Kernel/SearchApiSolrTest.php
Tests retrieve_data options.

... See full list

File

tests/src/Kernel/SolrBackendTestBase.php, line 108

Class

SolrBackendTestBase
Tests location searches and distance facets using the Solr search backend.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

protected function indexItems($index_id) {
  $index_status = parent::indexItems($index_id);
  $index = Index::load($index_id);
  $this
    ->ensureCommit($index);
  return $index_status;
}