diff --git a/core/lib/Drupal/Core/Database/Database.php b/core/lib/Drupal/Core/Database/Database.php index b304266..0c30541 100644 --- a/core/lib/Drupal/Core/Database/Database.php +++ b/core/lib/Drupal/Core/Database/Database.php @@ -448,9 +448,6 @@ public static function ignoreTarget($key, $target) { * @throws \InvalidArgumentException * Exception thrown when the provided URL does not meet the minimum * requirements. - * @throws \RuntimeException - * When the database driver is not available, or the URL can not be - * converted to a database connection array. */ public static function convertDbUrlToConnectionInfo($url, $root) { if (preg_match('/^(.*):\/\//', $url, $matches) !== 1) { diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index 0a611d8..75dfca6 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -462,7 +462,7 @@ protected function getDatabaseConnectionInfo() { // Replace the full table prefix definition to ensure that no table // prefixes of the test runner leak into the test. $connection_info[$target]['prefix'] = [ - 'default' => $value['prefix']['default'] . $this->databasePrefix, + 'default' => $this->databasePrefix, ]; } }