UserRoleConditionTest::$role
Same name in other branches
- 9 core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php \Drupal\Tests\user\Kernel\Condition\UserRoleConditionTest::role
- 8.9.x core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php \Drupal\Tests\user\Kernel\Condition\UserRoleConditionTest::role
- 11.x core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php \Drupal\Tests\user\Kernel\Condition\UserRoleConditionTest::role
A custom role for testing purposes.
Type: \Drupal\user\RoleInterface
File
-
core/
modules/ user/ tests/ src/ Kernel/ Condition/ UserRoleConditionTest.php, line 46
Class
- UserRoleConditionTest
- Tests the user role condition.
Namespace
Drupal\Tests\user\Kernel\ConditionCode
protected $role;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.