From 129f6e984dbe4042642eef863372dae5f0f9afdf Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 4 Jun 2025 04:03:51 +0000 Subject: [PATCH] * [unittest] modify unit test. --- module/common/test/model/getpreandnextobject.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/common/test/model/getpreandnextobject.php b/module/common/test/model/getpreandnextobject.php index c7f4040aee..7fd2e415b9 100755 --- a/module/common/test/model/getpreandnextobject.php +++ b/module/common/test/model/getpreandnextobject.php @@ -11,10 +11,11 @@ title=测试 commonModel->getPreAndNextObject(); timeout=0 cid=1 -- 执行common模块的getPreAndNextObject方法,参数是'', 3 +- 执行 @1 +- 执行common模块的getPreAndNextObject方法,参数是'', 3 - 属性pre @~~ - 属性next @~~ -- 执行common模块的getPreAndNextObject方法,参数是'story', 3 +- 执行common模块的getPreAndNextObject方法,参数是'story', 3 - 属性pre @~~ - 属性next @~~ - 执行$preAndNextObject->pre属性id @2 @@ -46,4 +47,4 @@ $_SESSION['storyQueryCondition'] = 'SELECT * FROM `zt_story` WHERE id <= 4'; $_SESSION['storyOnlyCondition'] = false; $preAndNextObject = $tester->common->getPreAndNextObject('story', 3); r($preAndNextObject->pre) && p('id') && e('2'); -r($preAndNextObject->next) && p('id') && e('4'); +r($preAndNextObject->next) && p('id') && e('4'); \ No newline at end of file