Verified Commit b719931e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3453676 by nicxvan, alexpott, dww, lauriii, Gábor Hojtsy: Make "Who can...

Issue #3453676 by nicxvan, alexpott, dww, lauriii, Gábor Hojtsy: Make "Who can register accounts?" "Administrators only" by default
parent 8706c216
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ notify:
  register_admin_created: true
  register_no_approval_required: true
  register_pending_approval: true
register: visitors_admin_approval
register: admin_only
cancel_method: user_cancel_block
password_reset_timeout: 86400
password_strength: true
+4 −2
Original line number Diff line number Diff line
@@ -32,7 +32,9 @@ class MinimalTest extends BrowserTestBase {
  public function testMinimal() {
    $this->drupalGet('');
    // Check the login block is present.
    $this->assertSession()->linkExists('Create new account');
    $this->assertSession()->buttonExists('Log in');
    // Confirm anonymous users cannot create an account.
    $this->assertSession()->linkNotExists('Create new account');
    $this->assertSession()->statusCodeEquals(200);

    // Create a user to test tools and navigation blocks for logged in users
@@ -60,7 +62,7 @@ public function testMinimal() {

    // Ensure special configuration overrides are correct.
    $this->assertFalse($this->config('system.theme.global')->get('features.node_user_picture'), 'Configuration system.theme.global:features.node_user_picture is FALSE.');
    $this->assertEquals(UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL, $this->config('user.settings')->get('register'));
    $this->assertEquals(UserInterface::REGISTER_ADMINISTRATORS_ONLY, $this->config('user.settings')->get('register'));

    // Now we have all configuration imported, test all of them for schema
    // conformance. Ensures all imported default configuration is valid when
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ notify:
  register_admin_created: true
  register_no_approval_required: true
  register_pending_approval: true
register: visitors_admin_approval
register: admin_only
cancel_method: user_cancel_block
password_reset_timeout: 86400
password_strength: true
+1 −1
Original line number Diff line number Diff line
@@ -81,5 +81,5 @@ config:
    user.settings:
      simple_config_update:
        verify_mail: true
        register: visitors_admin_approval
        register: admin_only
        cancel_method: user_cancel_block