public function Pathautoi18nUserTest::createUser in Pathauto i18n 7
Helper to create users.
2 calls to Pathautoi18nUserTest::createUser()
- Pathautoi18nUserTest::testCleanString in tests/
pathauto_i18n_user.test - Test clearing of string.
- Pathautoi18nUserTest::testUserAlias in tests/
pathauto_i18n_user.test - Test user alias.
File
- tests/
pathauto_i18n_user.test, line 80
Class
- Pathautoi18nUserTest
- Test functionality for user.
Code
public function createUser() {
$edit = array();
$edit['name'] = $this->title;
$edit['mail'] = $edit['name'] . '@sanchiz.net';
$edit['pass'] = user_password();
$edit['status'] = 1;
$edit['pathauto_i18n_status'] = 1;
user_save(drupal_anonymous_user(), $edit);
}