Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
bkosborne opened this issue Nov 3, 2018 · 2 comments

Comments

@bkosborne
Copy link

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.

@jhedstrom
Copy link
Owner

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...

@bkosborne
Copy link
Author

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants