* [unittest] modify start unittest.
This commit is contained in:
@@ -11,18 +11,16 @@ timeout=0
|
||||
cid=1
|
||||
|
||||
- 开启一个状态为wait的todo属性status @doing
|
||||
|
||||
- 开启一个状态为doing的todo属性status @doing
|
||||
|
||||
- 开启一个状态为done的todo属性status @doing
|
||||
|
||||
|
||||
- 开启一个状态为wait的todo属性status @doing
|
||||
- 开启一个状态为doing的todo属性status @doing
|
||||
|
||||
*/
|
||||
|
||||
function initData()
|
||||
{
|
||||
zenData('todo')->loadYaml('start')->gen(3);
|
||||
zenData('todo')->loadYaml('start')->gen(5);
|
||||
}
|
||||
|
||||
initData();
|
||||
@@ -32,3 +30,5 @@ $todo = new todoTest();
|
||||
r($todo->startTest(1)) && p('status') && e('doing'); //开启一个状态为wait的todo
|
||||
r($todo->startTest(2)) && p('status') && e('doing'); //开启一个状态为doing的todo
|
||||
r($todo->startTest(3)) && p('status') && e('doing'); //开启一个状态为done的todo
|
||||
r($todo->startTest(4)) && p('status') && e('doing'); //开启一个状态为wait的todo
|
||||
r($todo->startTest(5)) && p('status') && e('doing'); //开启一个状态为doing的todo
|
||||
@@ -3,9 +3,9 @@ author: shenshulong
|
||||
version: '1.0'
|
||||
fields:
|
||||
- field: id
|
||||
range: '1-3'
|
||||
range: '1-5'
|
||||
- field: account
|
||||
range: '1-3'
|
||||
range: '1-5'
|
||||
prefix: 'admin'
|
||||
- field: begin
|
||||
range: '1710'
|
||||
|
||||
Reference in New Issue
Block a user