FieldAccessTest::$activeUid

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php \Drupal\KernelTests\Core\Field\FieldAccessTest::activeUid
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php \Drupal\KernelTests\Core\Field\FieldAccessTest::activeUid
  3. 11.x core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php \Drupal\KernelTests\Core\Field\FieldAccessTest::activeUid

Holds the currently active global user ID that initiated the test run.

The user ID gets replaced during the test and needs to be kept here so that it can be restored at the end of the test run.

Type: int

File

core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php, line 41

Class

FieldAccessTest
Tests Field level access hooks.

Namespace

Drupal\KernelTests\Core\Field

Code

protected $activeUid;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.