Loading core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php +5 −0 Original line number Diff line number Diff line Loading @@ -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.'); } } } Loading core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php +5 −0 Original line number Diff line number Diff line Loading @@ -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)) { Loading Loading
core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php +5 −0 Original line number Diff line number Diff line Loading @@ -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.'); } } } Loading
core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php +5 −0 Original line number Diff line number Diff line Loading @@ -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)) { Loading