DrupalDriver icon indicating copy to clipboard operation
DrupalDriver copied to clipboard

Allow passing a name to roleCreate, so roles are not created with random names

Open bkosborne opened this issue 7 years ago • 2 comments

I'm writing a scenario where I need to create some roles with specific permissions, and I want to provide the name of the role. The existing roleCreate methods for the Drupal 7 and Drupal 8 cores don't allow passing in a name. This would be helpful.

bkosborne avatar Nov 03 '18 16:11 bkosborne

Are these existing roles? If it's just a subset of permissions, do you need the role name later in the scenario? If they are existing roles, there are the step definitions to create a user with specific named-roles...

jhedstrom avatar Nov 06 '18 19:11 jhedstrom

I need the role name, because my test involves checking to ensure that a role with a specific set of permissions shows up on a certain configuration form.

For now I created my own step definition to do it, I just think it would be useful to incorporate.

bkosborne avatar Nov 07 '18 00:11 bkosborne