setCurrentUser() public method

Deprecation: since 6.6, to be removed. Use PermissionResolver::setCurrentUserReference() instead. Sets the current user to the given $user.
public setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user )
$user eZ\Publish\API\Repository\Values\User\UserReference
Example #1
0
 /**
  * Setup test
  */
 protected function setUp()
 {
     parent::setUp();
     $this->repository = static::getRepository();
     $this->repository->setCurrentUser($this->getStubbedUser(14));
 }