* Add the cleanlocked unit testcase.

This commit is contained in:
hufangzhou
2023-01-10 02:24:50 +00:00
parent 14fa294219
commit fc17ac07aa
2 changed files with 48 additions and 0 deletions
+15
View File
@@ -530,6 +530,21 @@ class userTest
return $myObjects;
}
public function cleanLockedTest($account)
{
global $tester;
$this->objectModel->cleanLocked($account);
if(dao::isError()) return dao::getError();
$locked = $tester->dao->select('locked')->from(TABLE_USER)->where('account')->eq($account)->fetch('locked');
$result = $locked === '0000-00-00 00:00:00' ? 'success' : 'fail';
return $result;
}
/**
* Test get contact list.
*