github.com/goravel/framework@v1.13.9/contracts/mail/mocks/Mail.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mail "github.com/goravel/framework/contracts/mail" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Mail is an autogenerated mock type for the Mail type 11 type Mail struct { 12 mock.Mock 13 } 14 15 // Attach provides a mock function with given fields: files 16 func (_m *Mail) Attach(files []string) mail.Mail { 17 ret := _m.Called(files) 18 19 var r0 mail.Mail 20 if rf, ok := ret.Get(0).(func([]string) mail.Mail); ok { 21 r0 = rf(files) 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(mail.Mail) 25 } 26 } 27 28 return r0 29 } 30 31 // Bcc provides a mock function with given fields: addresses 32 func (_m *Mail) Bcc(addresses []string) mail.Mail { 33 ret := _m.Called(addresses) 34 35 var r0 mail.Mail 36 if rf, ok := ret.Get(0).(func([]string) mail.Mail); ok { 37 r0 = rf(addresses) 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).(mail.Mail) 41 } 42 } 43 44 return r0 45 } 46 47 // Cc provides a mock function with given fields: addresses 48 func (_m *Mail) Cc(addresses []string) mail.Mail { 49 ret := _m.Called(addresses) 50 51 var r0 mail.Mail 52 if rf, ok := ret.Get(0).(func([]string) mail.Mail); ok { 53 r0 = rf(addresses) 54 } else { 55 if ret.Get(0) != nil { 56 r0 = ret.Get(0).(mail.Mail) 57 } 58 } 59 60 return r0 61 } 62 63 // Content provides a mock function with given fields: content 64 func (_m *Mail) Content(content mail.Content) mail.Mail { 65 ret := _m.Called(content) 66 67 var r0 mail.Mail 68 if rf, ok := ret.Get(0).(func(mail.Content) mail.Mail); ok { 69 r0 = rf(content) 70 } else { 71 if ret.Get(0) != nil { 72 r0 = ret.Get(0).(mail.Mail) 73 } 74 } 75 76 return r0 77 } 78 79 // From provides a mock function with given fields: address 80 func (_m *Mail) From(address mail.From) mail.Mail { 81 ret := _m.Called(address) 82 83 var r0 mail.Mail 84 if rf, ok := ret.Get(0).(func(mail.From) mail.Mail); ok { 85 r0 = rf(address) 86 } else { 87 if ret.Get(0) != nil { 88 r0 = ret.Get(0).(mail.Mail) 89 } 90 } 91 92 return r0 93 } 94 95 // Queue provides a mock function with given fields: queue 96 func (_m *Mail) Queue(queue *mail.Queue) error { 97 ret := _m.Called(queue) 98 99 var r0 error 100 if rf, ok := ret.Get(0).(func(*mail.Queue) error); ok { 101 r0 = rf(queue) 102 } else { 103 r0 = ret.Error(0) 104 } 105 106 return r0 107 } 108 109 // Send provides a mock function with given fields: 110 func (_m *Mail) Send() error { 111 ret := _m.Called() 112 113 var r0 error 114 if rf, ok := ret.Get(0).(func() error); ok { 115 r0 = rf() 116 } else { 117 r0 = ret.Error(0) 118 } 119 120 return r0 121 } 122 123 // To provides a mock function with given fields: addresses 124 func (_m *Mail) To(addresses []string) mail.Mail { 125 ret := _m.Called(addresses) 126 127 var r0 mail.Mail 128 if rf, ok := ret.Get(0).(func([]string) mail.Mail); ok { 129 r0 = rf(addresses) 130 } else { 131 if ret.Get(0) != nil { 132 r0 = ret.Get(0).(mail.Mail) 133 } 134 } 135 136 return r0 137 } 138 139 type mockConstructorTestingTNewMail interface { 140 mock.TestingT 141 Cleanup(func()) 142 } 143 144 // NewMail creates a new instance of Mail. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 145 func NewMail(t mockConstructorTestingTNewMail) *Mail { 146 mock := &Mail{} 147 mock.Mock.Test(t) 148 149 t.Cleanup(func() { mock.AssertExpectations(t) }) 150 151 return mock 152 }