Loading core/modules/system/tests/src/Functional/Module/DependencyTest.php +2 −6 Changes for core/modules/system/tests/src/Functional/Module/DependencyTest.php: 2 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -55,7 +55,6 @@ public function testProjectNamespaceForDependencies(): void { $edit = [ 'modules[system_project_namespace_test][enable]' => TRUE, ]; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertModules(['system_project_namespace_test'], TRUE); } Loading Loading @@ -112,7 +111,6 @@ public function testNoVersionInfo(): void { // Ensure the modules can actually be installed. $edit['modules[system_no_module_version_test][enable]'] = 'system_no_module_version_test'; $edit['modules[system_no_module_version_dependency_test][enable]'] = 'system_no_module_version_dependency_test'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertSession()->pageTextContains('2 modules have been installed: System no module version dependency test, System no module version test.'); Loading @@ -133,14 +131,12 @@ public function testCoreCompatibility(): void { $assert_session->fieldDisabled('modules[system_core_incompatible_semver_test][enable]'); // Test compatible 'core_version_requirement' and compatible 'core'. $this->drupalGet('admin/modules'); $assert_session->fieldEnabled('modules[common_test][enable]'); $assert_session->fieldEnabled('modules[system_core_semver_test][enable]'); // Ensure the modules can actually be installed. $edit['modules[common_test][enable]'] = 'common_test'; $edit['modules[system_core_semver_test][enable]'] = 'system_core_semver_test'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertModules(['common_test', 'system_core_semver_test'], TRUE); } Loading Loading @@ -170,9 +166,9 @@ public function testModuleEnableOrder(): void { // message. $this->assertSession()->pageTextContains('You must install the following modules to install Database Logging:Configuration ManagerHelp'); $this->drupalGet('admin/modules'); $edit['modules[config][enable]'] = 'config'; $edit['modules[help][enable]'] = 'help'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertModules(['dblog', 'config', 'help'], TRUE); Loading @@ -195,9 +191,9 @@ public function testModuleDependencyMessages(): void { // Check the module install text with 2 module dependencies. \Drupal::service('module_installer')->install(['module_test'], FALSE); \Drupal::state()->set('module_test.dependency', 'dependency'); $this->drupalGet('admin/modules'); $edit = []; $edit['modules[dblog][enable]'] = 'dblog'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertSession()->pageTextContains('You must install the following modules to install Database Logging:Configuration ManagerHelp'); Loading Loading
core/modules/system/tests/src/Functional/Module/DependencyTest.php +2 −6 Changes for core/modules/system/tests/src/Functional/Module/DependencyTest.php: 2 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -55,7 +55,6 @@ public function testProjectNamespaceForDependencies(): void { $edit = [ 'modules[system_project_namespace_test][enable]' => TRUE, ]; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertModules(['system_project_namespace_test'], TRUE); } Loading Loading @@ -112,7 +111,6 @@ public function testNoVersionInfo(): void { // Ensure the modules can actually be installed. $edit['modules[system_no_module_version_test][enable]'] = 'system_no_module_version_test'; $edit['modules[system_no_module_version_dependency_test][enable]'] = 'system_no_module_version_dependency_test'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertSession()->pageTextContains('2 modules have been installed: System no module version dependency test, System no module version test.'); Loading @@ -133,14 +131,12 @@ public function testCoreCompatibility(): void { $assert_session->fieldDisabled('modules[system_core_incompatible_semver_test][enable]'); // Test compatible 'core_version_requirement' and compatible 'core'. $this->drupalGet('admin/modules'); $assert_session->fieldEnabled('modules[common_test][enable]'); $assert_session->fieldEnabled('modules[system_core_semver_test][enable]'); // Ensure the modules can actually be installed. $edit['modules[common_test][enable]'] = 'common_test'; $edit['modules[system_core_semver_test][enable]'] = 'system_core_semver_test'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertModules(['common_test', 'system_core_semver_test'], TRUE); } Loading Loading @@ -170,9 +166,9 @@ public function testModuleEnableOrder(): void { // message. $this->assertSession()->pageTextContains('You must install the following modules to install Database Logging:Configuration ManagerHelp'); $this->drupalGet('admin/modules'); $edit['modules[config][enable]'] = 'config'; $edit['modules[help][enable]'] = 'help'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertModules(['dblog', 'config', 'help'], TRUE); Loading @@ -195,9 +191,9 @@ public function testModuleDependencyMessages(): void { // Check the module install text with 2 module dependencies. \Drupal::service('module_installer')->install(['module_test'], FALSE); \Drupal::state()->set('module_test.dependency', 'dependency'); $this->drupalGet('admin/modules'); $edit = []; $edit['modules[dblog][enable]'] = 'dblog'; $this->drupalGet('admin/modules'); $this->submitForm($edit, 'Install'); $this->assertSession()->pageTextContains('You must install the following modules to install Database Logging:Configuration ManagerHelp'); Loading