Loading core/modules/config/tests/src/Functional/ConfigImportAllTest.php +14 −6 Original line number Diff line number Diff line Loading @@ -29,13 +29,21 @@ class ConfigImportAllTest extends ModuleTestBase { protected $webUser; /** * The profile to install as a basis for testing. * Modules to enable. * * Using the standard profile as this has a lot of additional configuration. * * @var string * @var array */ protected static $modules = ['config']; /** * {@inheritdoc} */ protected $defaultTheme = 'stark'; /** * {@inheritdoc} */ protected $profile = 'standard'; protected $profile = 'testing'; /** * {@inheritdoc} Loading Loading @@ -100,7 +108,7 @@ public function testInstallUninstall() { $all_modules = \Drupal::service('extension.list.module')->getList(); $database_module = \Drupal::service('database')->getProvider(); $expected_modules = ['path_alias', 'system', 'user', 'standard', $database_module]; $expected_modules = ['path_alias', 'system', 'user', 'testing', $database_module]; // Ensure that only core required modules and the install profile can not be uninstalled. $validation_reasons = \Drupal::service('module_installer')->validateUninstall(array_keys($all_modules)); Loading Loading
core/modules/config/tests/src/Functional/ConfigImportAllTest.php +14 −6 Original line number Diff line number Diff line Loading @@ -29,13 +29,21 @@ class ConfigImportAllTest extends ModuleTestBase { protected $webUser; /** * The profile to install as a basis for testing. * Modules to enable. * * Using the standard profile as this has a lot of additional configuration. * * @var string * @var array */ protected static $modules = ['config']; /** * {@inheritdoc} */ protected $defaultTheme = 'stark'; /** * {@inheritdoc} */ protected $profile = 'standard'; protected $profile = 'testing'; /** * {@inheritdoc} Loading Loading @@ -100,7 +108,7 @@ public function testInstallUninstall() { $all_modules = \Drupal::service('extension.list.module')->getList(); $database_module = \Drupal::service('database')->getProvider(); $expected_modules = ['path_alias', 'system', 'user', 'standard', $database_module]; $expected_modules = ['path_alias', 'system', 'user', 'testing', $database_module]; // Ensure that only core required modules and the install profile can not be uninstalled. $validation_reasons = \Drupal::service('module_installer')->validateUninstall(array_keys($all_modules)); Loading