diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-22 15:31:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-22 15:31:18 +0000 |
commit | 153ef8bd7b79fa4063a3994cd653721249e9c465 (patch) | |
tree | c5eba601e3aab1b62086a7904ed070e26683d5c5 /profiles | |
parent | 260dbda9708a68e83b7ab84e1d947abae123a9d1 (diff) | |
download | brdo-153ef8bd7b79fa4063a3994cd653721249e9c465.tar.gz brdo-153ef8bd7b79fa4063a3994cd653721249e9c465.tar.bz2 |
- Patch #323477 by justinrandell, boombatower, tstoeckler, Damien Tournoud: increase simpletest speed by running on a simplified profile.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/testing/testing.info | 6 | ||||
-rw-r--r-- | profiles/testing/testing.install | 17 | ||||
-rw-r--r-- | profiles/testing/testing.profile | 3 |
3 files changed, 26 insertions, 0 deletions
diff --git a/profiles/testing/testing.info b/profiles/testing/testing.info new file mode 100644 index 000000000..a82b1158a --- /dev/null +++ b/profiles/testing/testing.info @@ -0,0 +1,6 @@ +; $Id$ +name = Testing +description = Totally stripped back testing profile. +version = VERSION +core = 7.x +hidden = TRUE diff --git a/profiles/testing/testing.install b/profiles/testing/testing.install new file mode 100644 index 000000000..74a1fff00 --- /dev/null +++ b/profiles/testing/testing.install @@ -0,0 +1,17 @@ +<?php + +/** + * Implements hook_install(). + * + * Perform actions to set up the site for this profile. + */ +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')); +} + diff --git a/profiles/testing/testing.profile b/profiles/testing/testing.profile new file mode 100644 index 000000000..b02b32d42 --- /dev/null +++ b/profiles/testing/testing.profile @@ -0,0 +1,3 @@ +<?php +// $Id$ + |