* [task#132857] add create method unit test.
This commit is contained in:
Executable
+20
@@ -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;
|
||||
Reference in New Issue
Block a user