diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 686b9bc..bf05b7c 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -970,6 +970,12 @@ protected function installParameters() {
         ),
       ),
     );
+
+    // If we only have one db driver available, we cannot set the driver.
+    include_once DRUPAL_ROOT . '/core/includes/install.inc';
+    if (count(drupal_get_database_types()) == 1) {
+      unset($parameters['forms']['install_settings_form']['driver']);
+    }
     return $parameters;
   }
 
