Verified Commit 35e3299a authored by godotislate's avatar godotislate
Browse files

fix: #3615455 Address test mysqli test failures

By: catch
By: godotislate
parent 96240ad3
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -71,6 +71,11 @@ public function testModuleGenericIssues(): void {
        $this->assertTrue(\Drupal::service('module_installer')->uninstall([$module]), "Failed to uninstall '$module' module");
        $this->assertTrue(\Drupal::service('module_installer')->install([$module]), "Failed to install '$module' module");
      }
      elseif (!empty($info['hidden'])) {
        // If a database driver is hidden, there will have been no assertions at
        // all, so mark the test skipped.
        $this->markTestSkipped('Nothing to assert for database driver modules.');
      }
    }
  }

+5 −0
Original line number Diff line number Diff line
@@ -110,6 +110,11 @@ protected function prepareEnvironment(): void {
      $module = Database::getConnection()->getProvider();
      if ($module !== 'core') {
        $core_extension['module'][$module] = 0;
        // If the module depends on another driver module, add that too.
        $info = Database::getConnection()->getConnectionOptions();
        foreach (array_keys($info['dependencies'] ?? []) as $dependency) {
          $core_extension['module'][$dependency] = 0;
        }
        $core_extension['module'] = \Drupal::service(ModuleWeight::class)->sort($core_extension['module']);
      }
      if ($this->profile === FALSE && array_key_exists('profile', $core_extension)) {