Loading core/tests/Drupal/Tests/Core/Database/ConnectionTest.php +11 −0 Original line number Diff line number Diff line Loading @@ -982,4 +982,15 @@ public function testDeprecatedFetchModes(int $mode): void { $statement->setFetchMode($mode); } /** * {@inheritdoc} */ public function tearDown(): void { parent::tearDown(); // Removes the default connection added by the // testFindCallerFromDebugBacktrace test. Database::removeConnection('default'); } } Loading
core/tests/Drupal/Tests/Core/Database/ConnectionTest.php +11 −0 Original line number Diff line number Diff line Loading @@ -982,4 +982,15 @@ public function testDeprecatedFetchModes(int $mode): void { $statement->setFetchMode($mode); } /** * {@inheritdoc} */ public function tearDown(): void { parent::tearDown(); // Removes the default connection added by the // testFindCallerFromDebugBacktrace test. Database::removeConnection('default'); } }