Files
EasySoft-ZenTaoPMS/module/repo/test/model/updatecommit.php
T
2024-01-04 12:04:45 +00:00

31 lines
678 B
PHP

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/repo.class.php';
su('admin');
/**
title=测试 repoModel->updateCommit();
timeout=0
cid=8
- 保存任务和分支的关联关系
- 属性AID @2
- 属性BID @1
- 属性extra @master
*/
zdTable('pipeline')->gen(4);
zdTable('repo')->config('repo')->gen(5);
zdTable('repohistory')->config('repohistory')->gen(4);
$repo = new repoTest();
$gitlabID = 1;
$svnID = 4;
r($repo->updateCommitTest($gitlabID)) && p() && e('1'); //更新gitlab代码库
r($repo->updateCommitTest($svnID)) && p('5:id,comment') && e('5,+ Add secondary file.'); //更新svn代码库