+ userTest: add script to test the getExecutions method of userModel.

This commit is contained in:
liugang
2023-12-25 16:46:43 +08:00
parent 228705541d
commit 2517732e73
2 changed files with 84 additions and 0 deletions
+16
View File
@@ -87,6 +87,22 @@ class userTest
return $this->objectModel->getProjects($account, $status, $orderBy, $pager);
}
/**
* 测试获取某个用户参与的项目和项目中指派给他的任务数的键值对。
* Test get executions that the user joined and the task count of the execution.
*
* @param string $account
* @param string $status
* @param string $orderBy
* @param object $pager
* @access public
* @return array
*/
public function getExecutionsTest(string $account, string $status = 'all', string $orderBy = 'id_desc', object $pager = null): array
{
return $this->objectModel->getExecutions($account, $status, $orderBy, $pager);
}
/**
* 测试根据用户和状态获取项目列表。
* Test fetch projects by user and status.