It would be very helpful to have a drupalCreateUserWithRoles() method to compliment drupalCreateUser(), which takes permissions as its parameter. Patch coming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland created an issue. See original summary.

Liam Morland’s picture

Liam Morland’s picture

Patch still applies and tests pass.