* [task#132857] add create method unit test.

This commit is contained in:
liyang
2024-11-20 15:41:15 +08:00
committed by 曹延义
parent 5696df42ab
commit 64422e63d7
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
su('admin');
zendata('system')->gen(0);
/**
title=测试 systemModel::create();
timeout=0
cid=1
*/
global $tester;
$system = $tester->loadModel('system');
$default = new stdclass();
$default->name = '应用10';
$default->product = 1;
$default->integrated = 0;