* Refactor messageModel::getNoticeTodos, and modify its unit test.

This commit is contained in:
liumengyi
2023-11-29 10:36:56 +08:00
parent 9bc3312058
commit f9401d3519
4 changed files with 51 additions and 17 deletions
+7 -4
View File
@@ -137,17 +137,20 @@ class messageTest
}
/**
* Get notice todos.
* 测试获取要提示的待办信息。
* Test get notice todos.
*
* @param string $account
* @access public
* @return void
* @return string|array
*/
public function getNoticeTodosTest()
public function getNoticeTodosTest(string $account): string|array
{
su($account);
$objects = $this->objectModel->getNoticeTodos();
if(dao::isError()) return dao::getError();
return $objects;
return implode(',', array_keys($objects));
}
}