* Modify the cleanlocked case and add the unbind unit testcase.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user