You are here

protected function AcquiaSearchOverrideTest::getDbName in Acquia Connector 8

Returns the current DB name.

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

File

acquia_search/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'];
}