* * Modified testcase of api.

This commit is contained in:
tianshujie
2022-08-12 16:48:13 +08:00
parent c782fb841f
commit 6a6103e350
10 changed files with 44 additions and 74 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ title=测试 apiModel->publishLib();
cid=1
pid=1
没有版本名的发布 >> 『Version』should not be blank.
没有版本名的发布 >> 『版本』不能为空。
正常的发布 >> Version1
*/
@@ -32,5 +32,5 @@ $normalRelease->lib = 910;
$normalRelease->addedBy = $tester->app->user->account;
$normalRelease->addedDate = helper::now();
r($api->publishLibTest($emptyBuildRelease)) && p('version:0') && e('『Version』should not be blank.'); //没有版本名的发布
r($api->publishLibTest($normalRelease)) && p('version') && e('Version1'); //正常的发布
r($api->publishLibTest($emptyBuildRelease)) && p('version:0') && e('『版本』不能为空。'); //没有版本名的发布
r($api->publishLibTest($normalRelease)) && p('version') && e('Version1'); //正常的发布