You are here

protected function LanguageIntegrationTest::countTrackedItems in Search API 8

Counts the number of tracked items in the test index.

Return value

int The number of tracked items in the test index.

1 call to LanguageIntegrationTest::countTrackedItems()
LanguageIntegrationTest::testIndexSettings in tests/src/Functional/LanguageIntegrationTest.php
Tests indexing with different language settings trough the UI.

File

tests/src/Functional/LanguageIntegrationTest.php, line 125

Class

LanguageIntegrationTest
Tests the overall functionality of indexing specific logic.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function countTrackedItems() {

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