From 907b2718f4e4560fcafe5c02a646a38e2eb02ca2 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 21 Aug 2023 16:01:46 +0800 Subject: [PATCH] * Adjust method return value and unit test. --- module/project/model.php | 4 ++-- module/project/test/model/getbudgetunitlist.php | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index 3c7414f341..e3b00e17cb 100755 --- a/module/project/model.php +++ b/module/project/model.php @@ -115,13 +115,13 @@ class projectModel extends model } /** + * 获取项目的预算单位列表。 * Get budget unit list. * * @access public * @return array */ - - public function getBudgetUnitList() + public function getBudgetUnitList(): array { $budgetUnitList = array(); if($this->config->vision != 'lite') diff --git a/module/project/test/model/getbudgetunitlist.php b/module/project/test/model/getbudgetunitlist.php index f2883ceec2..ada6b84332 100755 --- a/module/project/test/model/getbudgetunitlist.php +++ b/module/project/test/model/getbudgetunitlist.php @@ -7,11 +7,6 @@ include dirname(__FILE__, 5) . '/test/lib/init.php'; title=测试 projectModel::getBudgetUnitList(); timeout=0 cid=1 -pid=1 - -- 执行project模块的getBudgetUnitList方法 - - 属性CNY @人民币 - - 属性USD @美元 */