* Add the identifybycookie and identifybyphpauth unit testcase.

This commit is contained in:
hufangzhou
2023-01-11 05:18:05 +00:00
parent c5bd66918f
commit eb7b151b4a
3 changed files with 100 additions and 0 deletions
+22
View File
@@ -1037,4 +1037,26 @@ class userTest
return $oldRandom != $newRandom ? 1 : 0;
}
/**
* Identify user by PHP_AUTH_USER.
*
* @access public
* @return bool
*/
public function identifyByPhpAuthTest()
{
return $this->objectModel->identifyByPhpAuth();
}
/**
* Identify user by cookie.
*
* @access public
* @return bool
*/
public function identifyByCookieTest()
{
return $this->objectModel->identifyByCookie();
}
}