+ [misc] Add unit tests for tutorialModel::getGradePairs() method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-15 15:06:25 +08:00
co-authored by Claude
parent ad91db977e
commit 521e8331aa
3 changed files with 58 additions and 0 deletions
@@ -360,4 +360,20 @@ class tutorialTest
return $result;
}
/**
* 测试获取需求层级键值对。
* Test get story grade pairs.
*
* @param string $type
* @access public
* @return array
*/
public function getGradePairsTest(string $type): array
{
$result = $this->objectModel->getGradePairs($type);
if(dao::isError()) return dao::getError();
return $result;
}
}