Loading core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php +5 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,11 @@ class ModuleHandlerTest extends KernelTestBase { */ public function testModuleList() { $module_list = ['system']; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $module_list[] = $database_module; } sort($module_list); $this->assertModuleList($module_list, 'Initial'); // Try to install a new module. Loading core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,10 @@ protected function setUp(): void { $this->allModules[] = 'system'; $this->allModules[] = 'user'; $this->allModules[] = 'path_alias'; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $this->allModules[] = $database_module; } sort($this->allModules); $this->container->get('module_installer')->install($this->allModules); Loading core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php +17 −2 Original line number Diff line number Diff line Loading @@ -34,14 +34,29 @@ public function testDrupalFlushAllCachesModuleList() { $core_extension->set('module', module_config_sort($module))->save(); $this->containerBuilds = 0; drupal_flush_all_caches(); $this->assertSame(['system_test', 'system'], array_keys($this->container->getParameter('container.modules'))); $module_list = ['system_test', 'system']; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $module_list[] = $database_module; } sort($module_list); $container_modules = array_keys($this->container->getParameter('container.modules')); sort($container_modules); $this->assertSame($module_list, $container_modules); $this->assertSame(1, $this->containerBuilds); $this->assertTrue(function_exists('system_test_help')); $core_extension->clear('module.system_test')->save(); $this->containerBuilds = 0; drupal_flush_all_caches(); $this->assertSame(['system'], array_keys($this->container->getParameter('container.modules'))); $module_list = ['system']; if ($database_module !== 'core') { $module_list[] = $database_module; } sort($module_list); $container_modules = array_keys($this->container->getParameter('container.modules')); sort($container_modules); $this->assertSame($module_list, $container_modules); $this->assertSame(1, $this->containerBuilds); } Loading core/tests/Drupal/KernelTests/Core/Theme/Stable9LibraryOverrideTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,10 @@ protected function setUp(): void { $this->allModules[] = 'system'; $this->allModules[] = 'user'; $this->allModules[] = 'path_alias'; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $this->allModules[] = $database_module; } sort($this->allModules); $this->container->get('module_installer')->install($this->allModules); Loading core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,10 @@ protected function setUp(): void { $this->allModules[] = 'system'; $this->allModules[] = 'user'; $this->allModules[] = 'path_alias'; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $this->allModules[] = $database_module; } sort($this->allModules); $this->container->get('module_installer')->install($this->allModules); Loading Loading
core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php +5 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,11 @@ class ModuleHandlerTest extends KernelTestBase { */ public function testModuleList() { $module_list = ['system']; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $module_list[] = $database_module; } sort($module_list); $this->assertModuleList($module_list, 'Initial'); // Try to install a new module. Loading
core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,10 @@ protected function setUp(): void { $this->allModules[] = 'system'; $this->allModules[] = 'user'; $this->allModules[] = 'path_alias'; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $this->allModules[] = $database_module; } sort($this->allModules); $this->container->get('module_installer')->install($this->allModules); Loading
core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php +17 −2 Original line number Diff line number Diff line Loading @@ -34,14 +34,29 @@ public function testDrupalFlushAllCachesModuleList() { $core_extension->set('module', module_config_sort($module))->save(); $this->containerBuilds = 0; drupal_flush_all_caches(); $this->assertSame(['system_test', 'system'], array_keys($this->container->getParameter('container.modules'))); $module_list = ['system_test', 'system']; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $module_list[] = $database_module; } sort($module_list); $container_modules = array_keys($this->container->getParameter('container.modules')); sort($container_modules); $this->assertSame($module_list, $container_modules); $this->assertSame(1, $this->containerBuilds); $this->assertTrue(function_exists('system_test_help')); $core_extension->clear('module.system_test')->save(); $this->containerBuilds = 0; drupal_flush_all_caches(); $this->assertSame(['system'], array_keys($this->container->getParameter('container.modules'))); $module_list = ['system']; if ($database_module !== 'core') { $module_list[] = $database_module; } sort($module_list); $container_modules = array_keys($this->container->getParameter('container.modules')); sort($container_modules); $this->assertSame($module_list, $container_modules); $this->assertSame(1, $this->containerBuilds); } Loading
core/tests/Drupal/KernelTests/Core/Theme/Stable9LibraryOverrideTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,10 @@ protected function setUp(): void { $this->allModules[] = 'system'; $this->allModules[] = 'user'; $this->allModules[] = 'path_alias'; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $this->allModules[] = $database_module; } sort($this->allModules); $this->container->get('module_installer')->install($this->allModules); Loading
core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,10 @@ protected function setUp(): void { $this->allModules[] = 'system'; $this->allModules[] = 'user'; $this->allModules[] = 'path_alias'; $database_module = \Drupal::database()->getProvider(); if ($database_module !== 'core') { $this->allModules[] = $database_module; } sort($this->allModules); $this->container->get('module_installer')->install($this->allModules); Loading