You are here

protected function AcquiaConnectorSearchOverrideTest::getDbName in Acquia Connector 8

Returns the current DB name.

3 calls to AcquiaConnectorSearchOverrideTest::getDbName()
AcquiaConnectorSearchOverrideTest::caseAcquiaHostingEnvironmentDetectedNoAvailableCores in acquia_search/tests/src/Functional/AcquiaConnectorSearchOverrideTest.php
Acquia Test environment and a DB name.
AcquiaConnectorSearchOverrideTest::caseAcquiaHostingProdEnvironmentDetectedWithoutProdFlag in acquia_search/tests/src/Functional/AcquiaConnectorSearchOverrideTest.php
Acquia Prod environment and a DB name but AH_PRODUCTION isn't set.
AcquiaConnectorSearchOverrideTest::setAvailableSearchCores in acquia_search/tests/src/Functional/AcquiaConnectorSearchOverrideTest.php
Sets available search cores into the subscription heartbeat data.

File

acquia_search/tests/src/Functional/AcquiaConnectorSearchOverrideTest.php, line 369

Class

AcquiaConnectorSearchOverrideTest
Tests the automatic switching behavior of the Acquia Search module.

Namespace

Drupal\Tests\acquia_search\Functional

Code

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