You are here

protected function AcquiaSearchOverrideTest::getDbName in Acquia Search 2.x

Returns the current DB name.

3 calls to AcquiaSearchOverrideTest::getDbName()
AcquiaSearchOverrideTest::setAvailableSearchCores in tests/src/Kernel/AcquiaSearchOverrideTest.php
Sets available search cores into the subscription heartbeat data.
AcquiaSearchOverrideTest::testAcquiaHostingEnvironmentDetected in tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests Acquia Dev hosting environment detected.
AcquiaSearchOverrideTest::testAcquiaSearchV3CoreDetected in tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests Acquia Dev hosting environment and search v3 core detected.

File

tests/src/Kernel/AcquiaSearchOverrideTest.php, line 340

Class

AcquiaSearchOverrideTest
Tests for Acquia Search override cores.

Namespace

Drupal\Tests\acquia_search\Kernel

Code

protected function getDbName() {
  $db_conn_options = Database::getConnection()
    ->getConnectionOptions();
  return $db_conn_options['database'];
}