You are here

public function Pathautoi18nUserTest::createUser in Pathauto i18n 8

Helper to create users.

File

src/Tests/Pathautoi18nUserTest.php, line 79
Tests for the pathauto_i18n user module.

Class

Pathautoi18nUserTest
Pathauto i18n test functionality for user.

Namespace

Drupal\pathauto_i18n\Tests

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);
}