* 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
+6 -1
View File
@@ -10,6 +10,11 @@ title=测试 apiModel->create();
cid=1
pid=1
测试创建api >> 910
测试没有lib创建api >> 『API Library』should not be blank.
测试没有title创建api >> 『Name』should not be blank.
测试没有path创建api >> 『Request Path』should not be blank.
*/
$api = new apiTest();
@@ -46,4 +51,4 @@ $emptyPathApi['path'] = '';
r($api->createTest($normalApi)) && p('lib') && e('910'); //测试创建api
r($api->createTest($emptyLibApi)) && p('lib:0') && e('『API Library』should not be blank.'); //测试没有lib创建api
r($api->createTest($emptyTitleApi)) && p('title:0') && e('『Name』should not be blank.'); //测试没有title创建api
r($api->createTest($emptyPathApi)) && p('path:0') && e('『Request Path』should not be blank.'); //测试没有path创建api
r($api->createTest($emptyPathApi)) && p('path:0') && e('『Request Path』should not be blank.'); //测试没有path创建api