Unverified Commit 791a385a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3106215 by Hardik_Patel_12: Unused private method updateAccess()

(cherry picked from commit 83cb3c87)
parent 23bb5935
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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();
  }

}