weitzman / logintrait
Provides login/logout via user reset URL instead of forms.
1.2.0
2021-07-07 17:59 UTC
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-22 15:42:15 UTC
README
This project is no longer needed if you are using DTT 2.4.3+.
Introduction
An add-on for Drupal Test Traits. Provides logout via user reset URL instead of forms. Useful when TFA/SAML are enabled. This project used to also provide a drupalLogin() implementation but that is longer needed as we got it into Drupal core in 10.3+. See https://www.drupal.org/project/drupal/issues/3469309.
Installation
- Install via Composer.
composer require weitzman/logintrait
.
Usage
- Use this trait whenever your test wants to login. See ExampleLoginTest.
Colophon
- Author: Created by Moshe Weitzman.
- License: Licensed under the MIT license