protected function KeyValueTestBase::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_storage/ tests/ src/ Kernel/ KeyValueTestBase.php, line 55
Class
- KeyValueTestBase
- Class KeyValueTestBase provides a base for Key-Value kernel tests.
Namespace
Drupal\Tests\mongodb_storage\KernelCode
protected function getSettingsArray() : array {
$settings = parent::getSettingsArray();
$settings['databases'][KeyValueFactory::DB_KEYVALUE] = [
static::CLIENT_TEST_ALIAS,
$this
->getDatabasePrefix(),
];
return $settings;
}