From d31a8c63412760c4f44873b088978430cb1cfcf8 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 1 Jul 2020 11:31:02 +0100 Subject: [PATCH] Issue #3152003 by Beakerboy, sanjayk, alexpott, daffie: EndOfTransactionQueriesTest does not include bootstrap.inc early enough for contrib database drivers --- .../KernelTests/Core/Cache/EndOfTransactionQueriesTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php b/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php index 885498fcd2..3bc2c8f6ca 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php @@ -31,12 +31,14 @@ class EndOfTransactionQueriesTest extends KernelTestBase { * {@inheritdoc} */ protected function setUp() { + parent::setUp(); + + // This can only be checked after installing Drupal as it requires functions + // from bootstrap.inc. if (!class_exists($this->getDatabaseConnectionInfo()['default']['namespace'] . '\Connection')) { $this->markTestSkipped(sprintf('No logging override exists for the %s database driver. Create it, subclass this test class and override ::getDatabaseConnectionInfo().', $this->getDatabaseConnectionInfo()['default']['driver'])); } - parent::setUp(); - $this->installSchema('system', 'sequences'); $this->installEntitySchema('entity_test'); $this->installEntitySchema('user'); -- GitLab