You are here

protected function IntegrationTest::tearDown in Search API Solr 4.x

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

File

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

Class

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

Namespace

Drupal\Tests\search_api_solr\Functional

Code

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