summaryrefslogtreecommitdiffstats
path: root/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php')
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php b/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
index 28d9ff2..383b532 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
@@ -113,11 +113,11 @@ class LoggingTest extends DatabaseTestBase {
db_query('SELECT name FROM {test} WHERE age > :age', [':age' => 25])->fetchCol();
- $old_key = db_set_active('test2');
+ $old_key = Database::setActiveConnection('test2');
db_query('SELECT age FROM {test} WHERE name = :name', [':name' => 'Ringo'], ['target' => 'replica'])->fetchCol();
- db_set_active($old_key);
+ Database::setActiveConnection($old_key);
$queries1 = Database::getLog('testing1');
$queries2 = Database::getLog('testing1', 'test2');