Example #1
0
 /**
  * Create a new user
  *
  * @param int $i
  * @return User
  */
 protected function createUser($i)
 {
     $user = new User();
     $user->setUsername('user_' . $i);
     $user->setNick('User ' . $i);
     $user->setEmail('user' . $i . '@example.org');
     $user->setPassword('passwd' . $i);
     $user->setPreferedLocale('fr');
     $user->setAlgorithm('sha1');
     return $user;
 }