UserEntityReferenceTest::$role2

Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php \Drupal\Tests\user\Kernel\UserEntityReferenceTest::role2
  2. 8.9.x core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php \Drupal\Tests\user\Kernel\UserEntityReferenceTest::role2
  3. 10 core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php \Drupal\Tests\user\Kernel\UserEntityReferenceTest::role2

A randomly-generated role for testing purposes.

Type: \Drupal\user\RoleInterface

File

core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php, line 33

Class

UserEntityReferenceTest
Tests the user reference field functionality.

Namespace

Drupal\Tests\user\Kernel

Code

protected $role2;

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