* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.

This commit is contained in:
liugang
2026-01-14 15:32:47 +08:00
parent 1940c61846
commit 1503f91b2b
3522 changed files with 66017 additions and 28160 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/execution.unittest.class.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
zenData('user')->gen(5);
su('admin');
@@ -53,7 +53,7 @@ $days = array($executionID => '5');
$normal = array('name' => $name, 'status'=> $statuses, 'code' => $code, 'PM' => $pms, 'lifetime' => $lifetimes, 'days' => $days);
$noName = array('status'=> $statuses, 'code' => $code, 'PM' => $pms, 'lifetime' => $lifetimes, 'days' => $days);
$execution = new executionTest();
$execution = new executionModelTest();
$result = $execution->batchUpdateObject($normal, $executionID);
r($result) && p('0:field,old,new') && e('name,迭代1,批量修改执行一'); // 测试批量修改任务
r($result) && p('1:field,old,new') && e('PM,~~,outside100'); // 测试批量修改任务