+ [unittest] modify unittest for mailTao::getMrMailContent.

This commit is contained in:
liumengyi
2025-06-06 16:15:51 +08:00
parent 026f297867
commit 4acf5b8dba
@@ -6,6 +6,12 @@
title=测试 mailModel->getMRMailContent();
cid=0
- 只传入mr @0
- 传入动作:compilefail @您提交的合并请求:<a href='/mr-view-1.html'>Test MR</a> 流水线任务执行失败,查看执行结果。
- 传入动作:compilepass @您提交的合并请求:<a href='/mr-view-1.html'>Test MR</a> 流水线任务执行通过。
- 传入动作:compilepass,发信给抄送人 @有一个合并请求:<a href='/mr-view-1.html'>Test MR</a> 待审核。
- 传入错误信息 @0
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
su('admin');
@@ -22,3 +28,4 @@ r($mailModel->getMRMailContent($mr, '')) && p() && e('0'); //
r($mailModel->getMRMailContent($mr, 'compilefail')) && p() && e("您提交的合并请求:<a href='/mr-view-1.html'>Test MR</a> 流水线任务执行失败,查看执行结果。"); //传入动作:compilefail
r($mailModel->getMRMailContent($mr, 'compilepass')) && p() && e("您提交的合并请求:<a href='/mr-view-1.html'>Test MR</a> 流水线任务执行通过。"); //传入动作:compilepass
r($mailModel->getMRMailContent($mr, 'compilepass', 'cc')) && p() && e("有一个合并请求:<a href='/mr-view-1.html'>Test MR</a> 待审核。"); //传入动作:compilepass,发信给抄送人
r($mailModel->getMRMailContent($mr, '1')) && p() && e('0'); //传入错误信息