You are here

protected function IntegrationTest::indexItems in Search API 8

Indexes all (unindexed) items on the specified index.

Return value

int The number of successfully indexed items.

3 calls to IntegrationTest::indexItems()
IntegrationTest::changeIndexServer in tests/src/Functional/IntegrationTest.php
Changes the index's server and checks if it reacts correctly.
IntegrationTest::checkIndexActions in tests/src/Functional/IntegrationTest.php
Tests the various actions on the index status form.
IntegrationTest::setReadOnly in tests/src/Functional/IntegrationTest.php
Sets an index to "read only" and checks if it reacts correctly.

File

tests/src/Functional/IntegrationTest.php, line 1619

Class

IntegrationTest
Tests the overall functionality of the Search API framework and admin UI.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function indexItems() {

  /** @var \Drupal\search_api\IndexInterface $index */
  $index = Index::load($this->indexId);
  return $index
    ->indexItems();
}