You are here

protected function SolrBackendTestBase::checkIndexWithoutFields in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::checkIndexWithoutFields()
  2. 4.x tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::checkIndexWithoutFields()

Checks the correct handling of an index without fields.

Return value

\Drupal\search_api\IndexInterface The created test index.

Overrides BackendTestBase::checkIndexWithoutFields

File

tests/src/Kernel/SolrBackendTestBase.php, line 135

Class

SolrBackendTestBase
Tests location searches and distance facets using the Solr search backend.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

protected function checkIndexWithoutFields() {
  $index = parent::checkIndexWithoutFields();
  $index
    ->clear();
  $this
    ->ensureCommit($index
    ->getServerInstance());
}