コード例 #1
0
ファイル: LeanUserTest.php プロジェクト: yuzhibiao/php-sdk
 public function testUpdatePassword()
 {
     $user = new LeanUser();
     $user->setUsername("alice3");
     $user->setPassword("blabla");
     $user->signUp();
     $this->assertNotEmpty($user->getObjectId());
     $this->assertNotEmpty($user->getSessionToken());
     $id = $user->getObjectId();
     $token = $user->getSessionToken();
     $user->updatePassword("blabla", "yadayada");
     // session token should be refreshed
     $this->assertNotEquals($token, $user->getSessionToken());
     $user->destroy();
 }