SimpleTest -> add user to a role
iterator - June 1, 2009 - 10:23
Hi..
Is it possible to add an user to a specific role? I only found the possibility to add permissions to an user:
$this->drupalCreateUser(array('access content', 'create page content'));Do i have to add all permissions of a role or is it possible to add the role directly? For example: drupalUserRole('moderator');

In what kind of situation do
In what kind of situation do you need to change the role?
Just thinking that the task could possibly be accomplished through some of the modules available. (Searching for "role" in the title field, over at Drupalmodules.com gave a few suggestions: Auto assign role, Auto assign role, Role assign, Role delegation et.c.)
Regards
Samuel Lampa - (Drupal Theme design at http://rilnet.com)