コード例 #1
0
ファイル: UserTest.php プロジェクト: icybee/module-users
 public function test_get_has_legacy_password_hash()
 {
     $this->assertNull(User::from()->has_legacy_password_hash);
     $this->assertTrue(User::from(['password_hash' => sha1('password')])->has_legacy_password_hash);
     $this->assertFalse(User::from(['password_hash' => User::hash_password('password')])->has_legacy_password_hash);
 }