You are here

protected function IntegrationTest::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.

7 calls to IntegrationTest::countTrackedItems()
IntegrationTest::changeIndexDatasource in tests/src/Functional/IntegrationTest.php
Changes the index's datasources and checks if it reacts correctly.
IntegrationTest::changeIndexServer in tests/src/Functional/IntegrationTest.php
Changes the index's server and checks if it reacts correctly.
IntegrationTest::checkContentEntityTracking in tests/src/Functional/IntegrationTest.php
Tests whether the tracking information is properly maintained.
IntegrationTest::disableEnableIndex in tests/src/Functional/IntegrationTest.php
Disables and enables an index and checks if it reacts correctly.
IntegrationTest::editIndex in tests/src/Functional/IntegrationTest.php
Tests editing a search index via the UI.

... See full list

File

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

Class

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

Namespace

Drupal\Tests\search_api\Functional

Code

protected function countTrackedItems() {
  return $this
    ->getIndex()
    ->getTrackerInstance()
    ->getTotalItemsCount();
}