You are here

private function UserBlocksTest::updateAccess in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/UserBlocksTest.php \Drupal\user\Tests\UserBlocksTest::updateAccess()

Updates the access column for a user.

1 call to UserBlocksTest::updateAccess()
UserBlocksTest::testWhosOnlineBlock in core/modules/user/src/Tests/UserBlocksTest.php
Test the Who's Online block.

File

core/modules/user/src/Tests/UserBlocksTest.php, line 132
Contains \Drupal\user\Tests\UserBlocksTest.

Class

UserBlocksTest
Tests user blocks.

Namespace

Drupal\user\Tests

Code

private function updateAccess($uid, $access = REQUEST_TIME) {
  db_update('users_field_data')
    ->condition('uid', $uid)
    ->fields(array(
    'access' => $access,
  ))
    ->execute();
}