UserRegistrationResourceTest::$currentUser

Same name in other branches
  1. 9 core/modules/user/tests/src/Unit/UserRegistrationResourceTest.php \Drupal\Tests\user\Unit\UserRegistrationResourceTest::currentUser
  2. 8.9.x core/modules/user/tests/src/Unit/UserRegistrationResourceTest.php \Drupal\Tests\user\Unit\UserRegistrationResourceTest::currentUser
  3. 11.x core/modules/user/tests/src/Unit/UserRegistrationResourceTest.php \Drupal\Tests\user\Unit\UserRegistrationResourceTest::currentUser

The current user.

Type: \Drupal\Core\Session\AccountInterface|\PHPUnit\Framework\MockObject\MockObject

File

core/modules/user/tests/src/Unit/UserRegistrationResourceTest.php, line 62

Class

UserRegistrationResourceTest
Tests User Registration REST resource.

Namespace

Drupal\Tests\user\Unit

Code

protected $currentUser;

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