configureEmailForTest attaches an email.Sender wired to the given mock endpoint plus a base URL so s.baseURL != "" (the configured check looks at both).
(srv *Server, endpoint, baseURL string)
| 769 | // mock endpoint plus a base URL so s.baseURL != "" (the configured |
| 770 | // check looks at both). |
| 771 | func configureEmailForTest(srv *Server, endpoint, baseURL string) { |
| 772 | sender := email.NewSender("test-key", "noreply@test.getpad.dev", "Pad Test", baseURL) |
| 773 | sender.SetEndpoint(endpoint) |
| 774 | srv.SetEmailSender(sender, "test-key") |
| 775 | srv.SetBaseURL(baseURL) |
| 776 | } |
| 777 | |
| 778 | // TestPaymentFailed_HappyPath_SendsAndAudits covers the end-to-end |
| 779 | // success path: Maileroo returns 200/success, pad records an audit row |
no test coverage detected