From a27fff1a546345ffc55d5febfebcedac27a0c442 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 22 Aug 2025 06:05:34 +0000 Subject: [PATCH] * [unittest] modify unittest. --- module/story/test/model/getversion.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/module/story/test/model/getversion.php b/module/story/test/model/getversion.php index d6c72e074a..0d31e1a97a 100755 --- a/module/story/test/model/getversion.php +++ b/module/story/test/model/getversion.php @@ -4,9 +4,14 @@ /** title=测试 storyModel->getVersion(); +timeout=0 cid=0 -- 执行story模块的getVersion方法,参数是2 @3 +- 查看需求1的版本 @3 +- 查看需求2的版本 @3 +- 查看需求3的版本 @3 +- 查看需求4的版本 @3 +- 查看需求5的版本 @3 */ include dirname(__FILE__, 5) . '/test/lib/init.php'; @@ -18,4 +23,8 @@ zenData('story')->gen(10); global $tester; $tester->loadModel('story'); -r($tester->story->getVersion(2)) && p() && e('3'); +r($tester->story->getVersion(1)) && p() && e('3'); // 查看需求1的版本 +r($tester->story->getVersion(2)) && p() && e('3'); // 查看需求2的版本 +r($tester->story->getVersion(3)) && p() && e('3'); // 查看需求3的版本 +r($tester->story->getVersion(4)) && p() && e('3'); // 查看需求4的版本 +r($tester->story->getVersion(5)) && p() && e('3'); // 查看需求5的版本 \ No newline at end of file