예제 #1
0
 public function test_createUser($username = "******", $email = "*****@*****.**")
 {
     $User = new User();
     $User->username = $username;
     $User->contact_email = $email;
     $User->setPassword(md5(time()));
     $User->commit();
     $User->setUserAccountStatus(User::STATUS_ACTIVE);
     return $User;
 }
예제 #2
0
 public function test_createUser()
 {
     $User = new User();
     $User->username = "******";
     $User->contact_email = "*****@*****.**";
     $User->setPassword("asdfadfa1111zz");
     $User->commit();
     $User->setUserAccountStatus(User::STATUS_ACTIVE);
     return $User;
 }