Sets the current user.
\Drupal\Core\Session\AccountInterface|null $current_user: The current user object.
public function setCurrentUser(?AccountInterface $current_user = NULL);