function ConnectionTest::tearDown

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php \Drupal\Tests\Core\Database\ConnectionTest::tearDown()

File

core/tests/Drupal/Tests/Core/Database/ConnectionTest.php, line 957

Class

ConnectionTest
Tests the Connection class.

Namespace

Drupal\Tests\Core\Database

Code

public function tearDown() : void {
    parent::tearDown();
    // Removes the default connection added by the
    // testFindCallerFromDebugBacktrace test.
    Database::removeConnection('default');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.