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:
- Set which roles should be used to create roles for
- 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.
Issue fork test_users-3439953
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jaapjan commentedThe argument for user roles is added to the command in the merge request.
Argument for password selection still to be done.
Comment #3
jaapjan commentedArgument for password also done.
Comment #5
eelkeblokLooks good. I tried whether it is possible to have the roles as separate arguments, but it seems Drush only supports a fixed number of arguments. I did turn the password into an option and added an email domain option while at it.