diff --git a/core/modules/user/src/Tests/UserCancelTest.php b/core/modules/user/src/Tests/UserCancelTest.php
index 4ce4d91..f17a166 100644
--- a/core/modules/user/src/Tests/UserCancelTest.php
+++ b/core/modules/user/src/Tests/UserCancelTest.php
@@ -594,4 +594,17 @@ function testMassUserCancelByAdmin() {
     $this->assertTrue($user1->isActive(), 'User #1 still exists and is not blocked.');
   }
 
+  function testUserDeleteWithContentAndNodeAccess() {
+
+    $this->container->get('module_installer')->install(['node_access_test']);
+    // Rebuild node access because private module is enabled.
+    node_access_rebuild();
+
+    $account = $this->drupalCreateUser(['access content']);
+    $node = $this->drupalCreateNode(['type' => 'page', 'uid' => $account->id()]);
+    $account->delete();
+    $load2 = node_load($node->id(), TRUE);
+    $this->assertTrue(empty($load2));
+  }
+
 }
