Merge branch 'sprint/hufangzhou_user_identifyby' into 'master'

* Add the identifybycookie and identifybyphpauth unit testcase.

See merge request easycorp/zentaopms!6750
This commit is contained in:
王怡栋
2023-01-11 08:59:19 +00:00
3 changed files with 100 additions and 0 deletions
+22
View File
@@ -1038,4 +1038,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();
}
}