diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php
index 031ee75..f54cf94 100644
--- a/core/modules/contact/src/Tests/ContactPersonalTest.php
+++ b/core/modules/contact/src/Tests/ContactPersonalTest.php
@@ -221,6 +221,20 @@ function testPersonalContactAccess() {
 
     $this->drupalGet('user/' . $this->contactUser->id() . '/contact');
     $this->assertResponse(200);
+
+    // Test "Enable by default" for existing users.
+    $this->drupalLogin($this->adminUser);
+    $this->container->get('module_installer')->uninstall(['contact']);
+    $this->contactUserPreEnable = $this->drupalCreateUser();
+    $this->container->get('module_installer')->install(['contact']);
+    $edit = ['contact_default_status' => TRUE, 'contact_default_scope' => 1];
+    $this->drupalPostForm('admin/config/people/accounts', $edit, t('Save configuration'));
+    $this->drupalLogin($this->webUser);
+    $this->drupalGet('user/' . $this->adminUser->id() . '/contact');
+    $this->assertResponse(200);
+    $this->drupalLogin($this->webUser);
+    $this->drupalGet('user/' . $this->contactUserPreEnable->id() . '/contact');
+    $this->assertResponse(200);
   }
 
   /**
