* Add auto test.
This commit is contained in:
@@ -10,14 +10,14 @@ title=taskModel->updateEstimate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
根据estimateID查看预计工时 >> consumed,3,1
|
||||
根据estimateID查看预计工时 >> consumed,4,1
|
||||
根据estimateID查看预计工时 >> consumed,1,5
|
||||
根据estimateID查看预计工时 >> consumed,5,1
|
||||
根据estimateID查看预计工时 >> status,wait,done
|
||||
根据estimateID查看预计工时 >> status,doing,done
|
||||
|
||||
*/
|
||||
|
||||
$estimateID = '1';
|
||||
$estimateID = '2';
|
||||
|
||||
$updateDate = array('date' => '2022-02-22');
|
||||
$updateConsumed = array('consumed' => '5');
|
||||
@@ -25,8 +25,8 @@ $updateLeft = array('left' => '1');
|
||||
$noLeft = array('left' => '0');
|
||||
|
||||
$task = new taskTest();
|
||||
r($task->updateEstimateTest($estimateID, $updateDate)) && p('0:field,old,new') && e('consumed,3,1'); // 根据estimateID查看预计工时
|
||||
r($task->updateEstimateTest($estimateID, $updateDate)) && p('0:field,old,new') && e('consumed,4,1'); // 根据estimateID查看预计工时
|
||||
r($task->updateEstimateTest($estimateID, $updateConsumed)) && p('0:field,old,new') && e('consumed,1,5'); // 根据estimateID查看预计工时
|
||||
r($task->updateEstimateTest($estimateID, $updateLeft)) && p('0:field,old,new') && e('consumed,5,1'); // 根据estimateID查看预计工时
|
||||
r($task->updateEstimateTest($estimateID, $noLeft)) && p('1:field,old,new') && e('status,wait,done'); // 根据estimateID查看预计工时
|
||||
system("./ztest init");
|
||||
r($task->updateEstimateTest($estimateID, $noLeft)) && p('1:field,old,new') && e('status,doing,done'); // 根据estimateID查看预计工时
|
||||
system("./ztest init");
|
||||
|
||||
Reference in New Issue
Block a user