diff -u b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php --- b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php +++ b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php @@ -52,11 +52,7 @@ $this->markTestSkipped('SQLITE modifies the prefixes so we cannot effectively test it'); } $options = $this->container->get('database')->getConnectionOptions(); - $test_prefix = ''; - if ($cnn = Database::getConnectionInfo('simpletest_original_default')) { - $test_prefix = $cnn['default']['prefix']['default']; - } - $this->assertSame($test_prefix . $this->databasePrefix, $options['prefix']['default']); + $this->assertSame($this->databasePrefix, $options['prefix']['default']); } /** only in patch2: unchanged: --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -456,7 +456,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'] = array( - 'default' => $value['prefix']['default'] . $this->databasePrefix, + 'default' => $this->databasePrefix, ); } }