* Add switchDB by tests.

This commit is contained in:
liyang
2022-08-09 14:11:38 +08:00
parent 40ba4c8a9e
commit 3bd5ccc13f
881 changed files with 3058 additions and 1826 deletions
Regular → Executable
+4 -1
View File
@@ -10,6 +10,9 @@ title=测试 apiModel->createStruct();
cid=1
pid=1
创建数据结构 >> struct
创建没有结构名的数据结构 >> 『Name』should not be blank.
*/
global $tester;
@@ -32,4 +35,4 @@ $normalStruct->addedBy = $tester->app->user->account;
$normalStruct->addedDate = helper::now();
r($api->createStructTest($normalStruct)) && p('name') && e('struct'); //创建数据结构
r($api->createStructTest($emptyNameStruct)) && p('name:0') && e('『Name』should not be blank.'); //创建没有结构名的数据结构
r($api->createStructTest($emptyNameStruct)) && p('name:0') && e('『Name』should not be blank.'); //创建没有结构名的数据结构