Skip to content
Snippets Groups Projects
Commit a4ed5f2c authored by Angie Byron's avatar Angie Byron
Browse files

#323477 follow-up by sun: Minor follow-ups to testing profile.

parent 94bf1a44
No related branches found
No related tags found
No related merge requests found
...@@ -1221,8 +1221,8 @@ protected function setUp() { ...@@ -1221,8 +1221,8 @@ protected function setUp() {
// Run the profile tasks. // Run the profile tasks.
$install_profile_module_exists = db_query("SELECT 1 FROM {system} WHERE type = 'module' AND name = :name", array( $install_profile_module_exists = db_query("SELECT 1 FROM {system} WHERE type = 'module' AND name = :name", array(
':name' => $this->profile)) ':name' => $this->profile,
->fetchField(); ))->fetchField();
if ($install_profile_module_exists) { if ($install_profile_module_exists) {
module_enable(array($this->profile), FALSE); module_enable(array($this->profile), FALSE);
} }
......
; $Id$ ; $Id$
name = Testing name = Testing
description = Totally stripped back testing profile. description = Minimal profile for running tests. Includes absolutely required modules only.
version = VERSION version = VERSION
core = 7.x core = 7.x
hidden = TRUE hidden = TRUE
<?php <?php
// $Id$
/** /**
* Implements hook_install(). * Implements hook_install().
...@@ -6,7 +7,6 @@ ...@@ -6,7 +7,6 @@
* Perform actions to set up the site for this profile. * Perform actions to set up the site for this profile.
*/ */
function testing_install() { function testing_install() {
// Allow visitor account creation, but with administrative approval. // Allow visitor account creation, but with administrative approval.
variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL); variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
...@@ -14,4 +14,3 @@ function testing_install() { ...@@ -14,4 +14,3 @@ function testing_install() {
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content')); user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content')); user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content'));
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment