You are here

protected function IntegrationTest::countRemainingItems in Search API 8

Counts the number of unindexed items in the test index.

Return value

int The number of unindexed items in the test index.

2 calls to IntegrationTest::countRemainingItems()
IntegrationTest::changeIndexServer in tests/src/Functional/IntegrationTest.php
Changes the index's server and checks if it reacts correctly.
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 710

Class

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

Namespace

Drupal\Tests\search_api\Functional

Code

protected function countRemainingItems() {
  return $this
    ->getIndex()
    ->getTrackerInstance()
    ->getRemainingItemsCount();
}