diff --git a/core/modules/system/system.test b/core/modules/system/system.test index 12797ed..197f205 100644 --- a/core/modules/system/system.test +++ b/core/modules/system/system.test @@ -168,6 +168,13 @@ class EnableDisableTestCase extends ModuleTestCase { // dependencies). We'll keep track of them in an array, so we can handle // them separately. $automatically_enabled = array(); + // Add modules being installed by the installation profile to the initial + // list of automatically enabled modules, if they can be disabled. + foreach (module_list() as $install_profile_module) { + if (isset($modules[$install_profile_module])) { + $automatically_enabled[$install_profile_module] = TRUE; + } + } // Go through each module in the list and try to enable it (unless it was // already enabled automatically due to a dependency). diff --git a/profiles/testing/testing.info b/profiles/testing/testing.info index 8e353ed..abedcf9 100644 --- a/profiles/testing/testing.info +++ b/profiles/testing/testing.info @@ -3,3 +3,4 @@ description = Minimal profile for running tests. Includes absolutely required mo version = VERSION core = 8.x hidden = TRUE +dependencies[] = node diff --git a/profiles/testing/testing.install b/profiles/testing/testing.install index 19092d4..192704d 100644 --- a/profiles/testing/testing.install +++ b/profiles/testing/testing.install @@ -8,4 +8,8 @@ function testing_install() { // Allow visitor account creation, but with administrative approval. variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL); + + // Enable default permissions for system roles. + user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content')); + user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content')); }