Search for setUpCurrentUser

  1. Search 7.x for setUpCurrentUser
  2. Search 9.5.x for setUpCurrentUser
  3. Search 8.9.x for setUpCurrentUser
  4. Search 10.3.x for setUpCurrentUser
  5. Other projects
Title Object type File name Summary
EntityKernelTestBaseTest::testSetUpCurrentUser function core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBaseTest.php Tests that the current user is set up correctly.
UserCreationTrait::setUpCurrentUser function core/modules/user/tests/src/Traits/UserCreationTrait.php Creates a random user account and sets it as current user.

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