You are here

protected function FacetsTest::tearDown in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::tearDown()
  2. 8.2 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::tearDown()
  3. 4.x tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::tearDown()

Overrides BrowserTestBase::tearDown

File

tests/src/Functional/FacetsTest.php, line 43

Class

FacetsTest
Tests the facets functionality using the Solr backend.

Namespace

Drupal\Tests\search_api_solr\Functional

Code

protected function tearDown() {
  if ($this->indexId) {
    $index = Index::load($this->indexId);
    $index
      ->clear();
    $this
      ->ensureCommit($index);
  }
  parent::tearDown();
}