You are here

function AAR::getNewUser in Auto Assign Role 6

Same name and namespace in other branches
  1. 6.2 tests/autoassignrole.test \AAR::getNewUser()

Helper function for new users

3 calls to AAR::getNewUser()
AutoassignroleUserChoiceTestCase::testUserChoiceAssignment in tests/autoassignrole.test
AutoassignroleUserPathTestCase::testPathMenuAssignment in tests/autoassignrole.test
AutoassignroleUserPathTestCase::testPathTabAssignment in tests/autoassignrole.test

File

tests/autoassignrole.test, line 84
Autoassignrole functionality tests.

Class

AAR
@file Autoassignrole functionality tests.

Code

function getNewUser() {
  $new_user = array();
  $new_user['name'] = $this
    ->randomName();
  $new_user['mail'] = $new_user['name'] . '@example.com';
  return $new_user;
}