+ [misc] Add unit tests for tutorialModel::getRun() 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:26 +08:00
co-authored by Claude
parent d7676e98e6
commit 343bedecad
2 changed files with 44 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env php
<?php
/**
title=测试 tutorialModel::getRun();
timeout=0
cid=0
- 执行tutorialTest模块的getRunTest方法 属性id @1
- 执行tutorialTest模块的getRunTest方法 属性status @normal
- 执行tutorialTest模块的getRunTest方法 属性task @1
- 执行tutorialTest模块的getRunTest方法 属性case @1
- 执行tutorialTest模块的getRunTest方法 属性version @1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
su('admin');
$tutorialTest = new tutorialTest();
r($tutorialTest->getRunTest()) && p('id') && e('1');
r($tutorialTest->getRunTest()) && p('status') && e('normal');
r($tutorialTest->getRunTest()) && p('task') && e('1');
r($tutorialTest->getRunTest()) && p('case') && e('1');
r($tutorialTest->getRunTest()) && p('version') && e('1');