Commit 6448d0e6 authored by Dries's avatar Dries

Issue #1865560 by sun: user register config override from Testing profile.

parent 646d120f
......@@ -22,7 +22,6 @@ public static function getInfo() {
function setUp() {
parent::setUp();
config('user.settings')->set('register', USER_REGISTER_VISITORS)->save();
// Enable anonymous and authenticated user comments.
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array(
......
......@@ -69,7 +69,6 @@ function testCommentNodeCommentStatistics() {
$this->assertEqual($node->comment_count, 1, 'The value of node comment_count is 1.');
// Prepare for anonymous comment submission (comment approval enabled).
config('user.settings')->set('register', USER_REGISTER_VISITORS)->save();
$this->drupalLogin($this->admin_user);
user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array(
'access comments' => TRUE,
......
......@@ -31,11 +31,6 @@ public static function getInfo() {
);
}
function setUp() {
parent::setUp();
config('user.settings')->set('register', USER_REGISTER_VISITORS)->save();
}
/**
* Test OpenID auto-registration with e-mail verification enabled.
*/
......
......@@ -21,11 +21,6 @@ public static function getInfo() {
);
}
function setUp() {
parent::setUp();
config('user.settings')->set('register', USER_REGISTER_VISITORS)->save();
}
/**
* Test Drupal\simpletest\WebTestBase::getAbsoluteUrl().
*/
......
......@@ -52,7 +52,6 @@ function setUp() {
),
);
field_create_instance($instance);
config('user.settings')->set('register', USER_REGISTER_VISITORS)->save();
}
/**
......
......@@ -29,11 +29,6 @@ public static function getInfo() {
);
}
function setUp() {
parent::setUp();
config('user.settings')->set('register', USER_REGISTER_VISITORS)->save();
}
/**
* Functional test for language handling during user creation.
*/
......
......@@ -12,9 +12,6 @@
* @see system_install()
*/
function testing_install() {
// Allow visitor account creation, but with administrative approval.
config('user.settings')->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save();
// Enable default permissions for system roles.
// @todo Remove dependency on Node module.
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment