You are here

protected function FacetsTest::indexItems in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::indexItems()
  2. 8.2 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::indexItems()
  3. 4.x tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::indexItems()

Indexes all (unindexed) items on the specified index.

Return value

int The number of successfully indexed items.

1 call to FacetsTest::indexItems()
FacetsTest::testFacets in tests/src/Functional/FacetsTest.php
Tests basic facets integration.

File

tests/src/Functional/FacetsTest.php, line 97

Class

FacetsTest
Tests the facets functionality using the Solr backend.

Namespace

Drupal\Tests\search_api_solr\Functional

Code

protected function indexItems($index_id) {
  $index_status = $this
    ->doindexItems($index_id);
  sleep(2);
  return $index_status;
}