You are here

protected function LoggerTest::getSettingsArray in MongoDB 8.2

Prepare the Settings from a base set of MongoDB settings.

Return value

array A settings array only containing MongoDB-related settings.

Overrides MongoDbTestBase::getSettingsArray

File

modules/mongodb_watchdog/tests/src/Kernel/LoggerTest.php, line 52

Class

LoggerTest
Class LoggerTest tests the logging mechanism itself.

Namespace

Drupal\Tests\mongodb_watchdog\Kernel

Code

protected function getSettingsArray() : array {
  $settings = parent::getSettingsArray();
  $settings['databases'][Logger::DB_LOGGER] = [
    static::CLIENT_TEST_ALIAS,
    $this
      ->getDatabasePrefix(),
  ];
  return $settings;
}