UserControllerTest::$user

Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php \Drupal\Tests\user\Kernel\Controller\UserControllerTest::user
  2. 11.x core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php \Drupal\Tests\user\Kernel\Controller\UserControllerTest::user

The logged in user.

Type: \Drupal\user\UserInterface

File

core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php, line 35

Class

UserControllerTest
Tests for the User controller.

Namespace

Drupal\Tests\user\Kernel\Controller

Code

protected $user;

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