* Modify the cleanlocked case and add the unbind unit testcase.

This commit is contained in:
hufangzhou
2023-01-10 06:13:23 +00:00
parent fc17ac07aa
commit 503f4aaa2b
3 changed files with 63 additions and 3 deletions
+29
View File
@@ -530,6 +530,13 @@ class userTest
return $myObjects;
}
/**
* Test clean user locked time.
*
* @param string $account
* @access public
* @return string
*/
public function cleanLockedTest($account)
{
global $tester;
@@ -545,6 +552,28 @@ class userTest
return $result;
}
/**
* Test unbind Ranzhi.
*
* @param string $account
* @access public
* @return string
*/
public function unbindTest($account)
{
global $tester;
$this->objectModel->unbind($account);
if(dao::isError()) return dao::getError();
$ranzhi = $tester->dao->select('ranzhi')->from(TABLE_USER)->where('account')->eq($account)->fetch('ranzhi');
$result = empty($ranzhi) ? 'success' : 'fail';
return $result;
}
/**
* Test get contact list.
*