Add class class and task
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/task.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试taskModel->batchUpdate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
测试批量修改任务 >> name,开发任务17,批量修改任务一
|
||||
|
||||
*/
|
||||
|
||||
$taskID = '7';
|
||||
|
||||
$name = array( '7' => '批量修改任务一');
|
||||
$type = array( '7' => 'devel');
|
||||
$statuses = array('7' =>'doing');
|
||||
|
||||
$normal = array('names' => $name, 'types' => $type,'statuses'=> $statuses);
|
||||
|
||||
$task = new taskTest();
|
||||
r($task->batchUpdateObject($normal, $taskID)) && p('1:field,old,new') && e('name,开发任务17,批量修改任务一'); // 测试批量修改任务
|
||||
system("./ztest init");
|
||||
Reference in New Issue
Block a user