* Adjust for unit test.

This commit is contained in:
wangyidong
2023-12-25 13:39:29 +08:00
parent 86fda1b2d9
commit 9e4169b1cb
91 changed files with 1814 additions and 586 deletions
+34 -6
View File
@@ -1,17 +1,45 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/product.class.php';
zdTable('product')->gen(10);
/**
title=测试 productModel->batchUpdate();
cid=1
pid=1
cid=0
- 执行$changes
- 属性field @program
- 属性old @0
- 属性new @1
- 执行$changes
- 属性field @name
- 属性old @正常产品1
- 属性new @批量修改产品1
- 执行$changes
- 属性field @type
- 属性old @normal
- 属性new @branch
- 执行$changes
- 属性field @acl
- 属性old @open
- 属性new @private
- 验证唯一。
- 属性result @fail
- 属性message @product:2『产品名称』已经有『批量修改产品1』这条记录了。\n
- 不传任何数据。 @0
- 执行$changes
- 属性field @type
- 属性old @branch
- 属性new @normal
- 执行$changes
- 属性field @acl
- 属性old @private
- 属性new @open
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/product.class.php';
zdTable('product')->gen(10);
$product = new productTest('admin');