Make Helpdesk email updates explicit

This commit is contained in:
Jason Thistlethwaite
2026-04-24 23:39:19 +00:00
parent c0904659e4
commit fb6d0c2736
4 changed files with 151 additions and 34 deletions
+5 -3
View File
@@ -6,9 +6,10 @@ redMCP work together on real Helpdesk issues.
The test creates one inbound Helpdesk email for `fud-helpdesk`, triggers
Helpdesk mail import, fetches the created issue through
`RedMCP\RedmineClient::issueWithHelpdesk()`, performs a non-Helpdesk CRUD
control in `fud-nohelpdesk`, sends a Helpdesk reply through the same mailer path
used by the UI's "Send note" checkbox, verifies the outbound message arrives in
Mailpit, and closes the Helpdesk issue.
control in `fud-nohelpdesk`, sends a Helpdesk reply with
`updateIssue(..., ['send_helpdesk_email' => true])`, verifies the outbound
message arrives in Mailpit, verifies a default `updateIssue()` does not send
mail, and closes the Helpdesk issue.
## Run
@@ -37,6 +38,7 @@ The final output should include:
```text
[OK] redMCP issueWithHelpdesk returned ticket and message context
[OK] redMCP default issue update did not send Helpdesk email
[OK] redMCP non-Helpdesk CRUD control passed
[OK] Mailpit received outbound Helpdesk/Redmine mail containing the reply token
[OK] Closed smoke-test Helpdesk issue