From ae871cd579c4d49aa8404305d41334817d012ba8 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 12 Sep 2025 10:31:00 +0800 Subject: [PATCH] + [misc] Add unit tests for tutorialModel::getStoryPairs() method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- module/tutorial/test/model/getstorypairs.php | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 module/tutorial/test/model/getstorypairs.php diff --git a/module/tutorial/test/model/getstorypairs.php b/module/tutorial/test/model/getstorypairs.php new file mode 100755 index 0000000000..2f440cbd2e --- /dev/null +++ b/module/tutorial/test/model/getstorypairs.php @@ -0,0 +1,34 @@ +#!/usr/bin/env php +getStoryPairsTest(); +r(count($result)) && p() && e('4'); // 步骤1:正常情况获取需求键值对数量 +r($result) && p('1') && e('Test epic'); // 步骤2:验证Epic需求ID和标题映射 +r($result) && p('2') && e('Test requirement'); // 步骤3:验证用户需求ID和标题映射 +r($result) && p('3') && e('Test active story'); // 步骤4:验证研发需求ID和标题映射 +r($result) && p('4') && e('Test reviewing story'); // 步骤5:验证评审中需求ID和标题映射 \ No newline at end of file