Drush command test-users:create arguments for roles and password

Created on 10 April 2024, about 1 year ago
Updated 11 April 2024, about 1 year ago

Problem/Motivation

The drush test-users:create command creates users for all the available roles on the platform. It would be helpful if this command supports arguments to:

  1. Set which roles should be used to create roles for
  2. Set a password for the test users

Steps to reproduce

Run drush test-users:create command and see that all the roles are being processed.

Proposed resolution

Change the createTestUsers method so it supports a comma-separated list of user roles as well as a password option.

The password argument should be optional, the roles argument required but it should support the value "all" so all roles are being processed.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands jaapjan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024