* [unittest] modify unittest.
This commit is contained in:
@@ -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的版本
|
||||
Reference in New Issue
Block a user