projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
tests
/
Drupal
/
KernelTests
/
Core
/
Database
/
LoggingTest.php
diff --git
a/web/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
b/web/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
index 28d9ff2bd8ec8612a582df26eb4a0d74a3a55015..383b5321950b136e6ab3622be175228e96da7ad9 100644
(file)
--- a/
web/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
+++ b/
web/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();
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_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');
$queries1 = Database::getLog('testing1');
$queries2 = Database::getLog('testing1', 'test2');