Unverified Commit c71e7e4e authored by alexpott's avatar alexpott

Issue #3152003 by Beakerboy, sanjayk, alexpott, daffie:...

Issue #3152003 by Beakerboy, sanjayk, alexpott, daffie: EndOfTransactionQueriesTest does not include bootstrap.inc early enough for contrib database drivers
parent 20ee1280
...@@ -31,12 +31,14 @@ class EndOfTransactionQueriesTest extends KernelTestBase { ...@@ -31,12 +31,14 @@ class EndOfTransactionQueriesTest extends KernelTestBase {
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp(): void { protected function setUp(): void {
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')) { 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'])); $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->installSchema('system', 'sequences');
$this->installEntitySchema('entity_test'); $this->installEntitySchema('entity_test');
$this->installEntitySchema('user'); $this->installEntitySchema('user');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment