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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user