From 83cb3c87d0169c1cad80e33901aa376d3484e2f7 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Mon, 10 Feb 2020 14:15:30 +0000
Subject: [PATCH] Issue #3106215 by Hardik_Patel_12: Unused private method
 updateAccess()

---
 .../user/tests/src/Functional/UserBlocksTest.php      | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/core/modules/user/tests/src/Functional/UserBlocksTest.php b/core/modules/user/tests/src/Functional/UserBlocksTest.php
index 0f9b82b8fb68..32d9197ac79c 100644
--- a/core/modules/user/tests/src/Functional/UserBlocksTest.php
+++ b/core/modules/user/tests/src/Functional/UserBlocksTest.php
@@ -3,7 +3,6 @@
 namespace Drupal\Tests\user\Functional;
 
 use Drupal\Core\Url;
-use Drupal\Core\Database\Database;
 use Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber;
 use Drupal\Tests\BrowserTestBase;
 
@@ -128,14 +127,4 @@ public function testUserLoginBlock() {
     $this->assertNoText(t('Unrecognized username or password. Forgot your password?'));
   }
 
-  /**
-   * Updates the access column for a user.
-   */
-  private function updateAccess($uid, $access = REQUEST_TIME) {
-    Database::getConnection()->update('users_field_data')
-      ->condition('uid', $uid)
-      ->fields(['access' => $access])
-      ->execute();
-  }
-
 }
-- 
GitLab