You are here

protected function BackendTestBase::clearIndex in Search API 8

Clears the test index.

2 calls to BackendTestBase::clearIndex()
BackendTest::editServerMinChars in modules/search_api_db/tests/src/Kernel/BackendTest.php
Edits the server to change the "Minimum word length" setting.
BackendTestBase::testBackend in tests/src/Kernel/BackendTestBase.php
Tests various indexing scenarios for the search backend.

File

tests/src/Kernel/BackendTestBase.php, line 903

Class

BackendTestBase
Provides a base class for backend tests.

Namespace

Drupal\Tests\search_api\Kernel

Code

protected function clearIndex() {
  $this
    ->getIndex()
    ->clear();
}