You are here

protected function FieldOptionsTest::tearDown in Webform CiviCRM Integration 8.5

Overrides KernelTestBase::tearDown

File

tests/src/Kernel/FieldOptionsTest.php, line 42

Class

FieldOptionsTest
@group webform_civicrm

Namespace

Drupal\Tests\webform_civicrm\Kernel

Code

protected function tearDown() {
  $conn = Database::getConnection('default', 'civicrm_test');
  $database = $conn
    ->getConnectionOptions()['database'];

  // Todo: get this working when db name passed in as an argument.
  $conn
    ->query("DROP DATABASE {$database}");
  $conn
    ->destroy();
}