summaryrefslogtreecommitdiff
path: root/internal/mocks
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-12-23 16:06:49 +1100
committerGitHub <noreply@github.com>2022-12-23 16:06:49 +1100
commit0bb657e11cfa6b9f16cd28340291b121fa1579bc (patch)
tree99ede2fd001cbcc9c3e0bdd50d8ce5b7d06539b0 /internal/mocks
parent38ca5f06d423916b972ea1d770c9b19714a61f64 (diff)
refactor(notifier): utilize smtp lib (#4403)
This drops a whole heap of code we were maintaining in favor of a SMTP library. Closes #2678
Diffstat (limited to 'internal/mocks')
-rw-r--r--internal/mocks/notifier.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/mocks/notifier.go b/internal/mocks/notifier.go
index 208fe2eb6..36ef6f94c 100644
--- a/internal/mocks/notifier.go
+++ b/internal/mocks/notifier.go
@@ -5,10 +5,13 @@
package mocks
import (
+ context "context"
mail "net/mail"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
+
+ templates "github.com/authelia/authelia/v4/internal/templates"
)
// MockNotifier is a mock of Notifier interface.
@@ -35,17 +38,17 @@ func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder {
}
// Send mocks base method.
-func (m *MockNotifier) Send(arg0 mail.Address, arg1 string, arg2, arg3 []byte) error {
+func (m *MockNotifier) Send(arg0 context.Context, arg1 mail.Address, arg2 string, arg3 *templates.EmailTemplate, arg4 interface{}) error {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2, arg3)
+ ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(error)
return ret0
}
// Send indicates an expected call of Send.
-func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
+func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockNotifier)(nil).Send), arg0, arg1, arg2, arg3)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockNotifier)(nil).Send), arg0, arg1, arg2, arg3, arg4)
}
// StartupCheck mocks base method.