Skip to main content

Authentication

DrevOps\BehatSteps\Steps\Helper\Drupal\AuthTrait - Source

Creates users and roles, logs them in, and removes them afterwards.

public function authCreateUser(EntityStubInterface $stub): EntityStubInterface

Creates a user

public function authGetAuthenticator(): AuthenticatorInterface

Returns the authenticator that logs a user in and out

public function authGetUserRegistry(): UserRegistryInterface

Returns the user registry

public function authIsLoggedIn(): bool

Determines whether a user is logged in for this session

public function authLogin(EntityStubInterface $user): void

Logs the given user in

public function authLogout(bool $is_fast = FALSE): void

Logs the current user out