public function RedisTestInterfaceTrait::setUpSettings in Redis 8
Uses an env variable to set the redis client to use for this test.
5 calls to RedisTestInterfaceTrait::setUpSettings()
- RedisCacheTest::register in tests/
src/ Kernel/ RedisCacheTest.php - Registers test-specific services.
- RedisFloodTest::testFlood in tests/
src/ Kernel/ RedisFloodTest.php - Test flood control.
- RedisLockTest::register in tests/
src/ Kernel/ RedisLockTest.php - Registers test-specific services.
- RedisQueueTest::testRedisBlockingQueue in tests/
src/ Kernel/ RedisQueueTest.php - Tests Redis blocking queue.
- RedisQueueTest::testRedisNonBlockingQueue in tests/
src/ Kernel/ RedisQueueTest.php - Tests Redis non-blocking queue.
File
- tests/
src/ Traits/ RedisTestInterfaceTrait.php, line 12
Class
Namespace
Drupal\Tests\redis\TraitsCode
public function setUpSettings() {
// Write redis_interface settings manually.
$redis_interface = self::getRedisInterfaceEnv();
$settings = Settings::getAll();
$settings['redis.connection']['interface'] = $redis_interface;
new Settings($settings);
}