RendererTestBase::$currentUserRole
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::currentUserRole
- 10 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::currentUserRole
- 11.x core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::currentUserRole
The simulated "current" user role, for use in tests with cache contexts.
Type: string
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTestBase.php, line 95
Class
- RendererTestBase
- Base class for the actual unit tests testing \Drupal\Core\Render\Renderer.
Namespace
Drupal\Tests\Core\RenderCode
protected $currentUserRole;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.