* Adjust codes.
This commit is contained in:
@@ -20,9 +20,9 @@ Gitea名称为空 >> name
|
||||
$gitea = new giteaTest();
|
||||
|
||||
$_POST = array();
|
||||
$_POST['name'] = '';
|
||||
$_POST['url'] = 'http://10.0.7.242:9020';
|
||||
$_POST['token'] = 'c6769e6761a7d719129b2421dcb3112d936e2b1f';
|
||||
$_POST['name'] = '';
|
||||
$_POST['url'] = 'http://10.0.7.242:9020';
|
||||
$_POST['token'] = 'c6769e6761a7d719129b2421dcb3112d936e2b1f';
|
||||
|
||||
r($gitea->create()) && p() && e('name'); // Gitea名称为空
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ title=测试giteaModel->gitById();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
使用存在的ID >> 4
|
||||
使用空的ID >> 0
|
||||
使用不存在的ID >> 0
|
||||
使用存在的ID >> 4
|
||||
使用空的ID >> 0
|
||||
使用不存在的ID >> 0
|
||||
|
||||
*/
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ cid=1
|
||||
pid=1
|
||||
|
||||
Gitea名称为空 >> name
|
||||
服务器地址为空 >> url
|
||||
服务器地址为空 >> url
|
||||
正确Gitea数据 >> Changed Gitea
|
||||
|
||||
*/
|
||||
@@ -22,14 +22,14 @@ $gitea = new giteaTest();
|
||||
$giteaID = 3;
|
||||
|
||||
$_POST = array();
|
||||
$_POST['name'] = '';
|
||||
$_POST['url'] = 'http://10.0.7.242:9020';
|
||||
$_POST['token'] = 'c6769e6761a7d719129b2421dcb3112d936e2b1f';
|
||||
$_POST['name'] = '';
|
||||
$_POST['url'] = 'http://10.0.7.242:9020';
|
||||
$_POST['token'] = 'c6769e6761a7d719129b2421dcb3112d936e2b1f';
|
||||
|
||||
r($gitea->update($giteaID)) && p() && e('name'); // Gitea名称为空
|
||||
|
||||
$_POST['name'] = 'Changed Gitea';
|
||||
$_POST['url'] = '';
|
||||
$_POST['name'] = 'Changed Gitea';
|
||||
$_POST['url'] = '';
|
||||
r($gitea->update($giteaID)) && p() && e('url'); // 服务器地址为空
|
||||
|
||||
$_POST['url'] = 'http://10.0.1.161:58080';
|
||||
|
||||
Reference in New Issue
Block a user