mocks

package
v6.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceInterface

type ServiceInterface struct {
	mock.Mock
}

ServiceInterface is an autogenerated mock type for the ServiceInterface type

func (*ServiceInterface) AddNotificationEmailToBatch

func (_m *ServiceInterface) AddNotificationEmailToBatch(user *model.User, post *model.Post, team *model.Team) *model.AppError

AddNotificationEmailToBatch provides a mock function with given fields: user, post, team

func (*ServiceInterface) CreateVerifyEmailToken

func (_m *ServiceInterface) CreateVerifyEmailToken(userID string, newEmail string) (*model.Token, error)

CreateVerifyEmailToken provides a mock function with given fields: userID, newEmail

func (*ServiceInterface) GetMessageForNotification

func (_m *ServiceInterface) GetMessageForNotification(post *model.Post, translateFunc i18n.TranslateFunc) string

GetMessageForNotification provides a mock function with given fields: post, translateFunc

func (*ServiceInterface) GetPerDayEmailRateLimiter

func (_m *ServiceInterface) GetPerDayEmailRateLimiter() *throttled.GCRARateLimiter

GetPerDayEmailRateLimiter provides a mock function with given fields:

func (*ServiceInterface) InitEmailBatching

func (_m *ServiceInterface) InitEmailBatching()

InitEmailBatching provides a mock function with given fields:

func (*ServiceInterface) NewEmailTemplateData

func (_m *ServiceInterface) NewEmailTemplateData(locale string) templates.Data

NewEmailTemplateData provides a mock function with given fields: locale

func (*ServiceInterface) SendChangeUsernameEmail

func (_m *ServiceInterface) SendChangeUsernameEmail(newUsername string, _a1 string, locale string, siteURL string) error

SendChangeUsernameEmail provides a mock function with given fields: newUsername, _a1, locale, siteURL

func (*ServiceInterface) SendCloudTrialEndWarningEmail

func (_m *ServiceInterface) SendCloudTrialEndWarningEmail(userEmail string, name string, trialEndDate string, locale string, siteURL string) error

SendCloudTrialEndWarningEmail provides a mock function with given fields: userEmail, name, trialEndDate, locale, siteURL

func (*ServiceInterface) SendCloudTrialEndedEmail

func (_m *ServiceInterface) SendCloudTrialEndedEmail(userEmail string, name string, locale string, siteURL string) error

SendCloudTrialEndedEmail provides a mock function with given fields: userEmail, name, locale, siteURL

func (*ServiceInterface) SendCloudWelcomeEmail

func (_m *ServiceInterface) SendCloudWelcomeEmail(userEmail string, locale string, teamInviteID string, workSpaceName string, dns string, siteURL string) error

SendCloudWelcomeEmail provides a mock function with given fields: userEmail, locale, teamInviteID, workSpaceName, dns, siteURL

func (*ServiceInterface) SendDeactivateAccountEmail

func (_m *ServiceInterface) SendDeactivateAccountEmail(_a0 string, locale string, siteURL string) error

SendDeactivateAccountEmail provides a mock function with given fields: _a0, locale, siteURL

func (*ServiceInterface) SendEmailChangeEmail

func (_m *ServiceInterface) SendEmailChangeEmail(oldEmail string, newEmail string, locale string, siteURL string) error

SendEmailChangeEmail provides a mock function with given fields: oldEmail, newEmail, locale, siteURL

func (*ServiceInterface) SendEmailChangeVerifyEmail

func (_m *ServiceInterface) SendEmailChangeVerifyEmail(newUserEmail string, locale string, siteURL string, token string) error

SendEmailChangeVerifyEmail provides a mock function with given fields: newUserEmail, locale, siteURL, token

func (*ServiceInterface) SendGuestInviteEmails

func (_m *ServiceInterface) SendGuestInviteEmails(team *model.Team, channels []*model.Channel, senderName string, senderUserId string, senderProfileImage []byte, invites []string, siteURL string, message string, errorWhenNotSent bool) error

SendGuestInviteEmails provides a mock function with given fields: team, channels, senderName, senderUserId, senderProfileImage, invites, siteURL, message, errorWhenNotSent

func (*ServiceInterface) SendInviteEmails

func (_m *ServiceInterface) SendInviteEmails(team *model.Team, senderName string, senderUserId string, invites []string, siteURL string, reminderData *model.TeamInviteReminderData, errorWhenNotSent bool) error

SendInviteEmails provides a mock function with given fields: team, senderName, senderUserId, invites, siteURL, reminderData, errorWhenNotSent

func (*ServiceInterface) SendInviteEmailsToTeamAndChannels added in v6.7.0

func (_m *ServiceInterface) SendInviteEmailsToTeamAndChannels(team *model.Team, channels []*model.Channel, senderName string, senderUserId string, senderProfileImage []byte, invites []string, siteURL string, reminderData *model.TeamInviteReminderData, message string, errorWhenNotSent bool) ([]*model.EmailInviteWithError, error)

SendInviteEmailsToTeamAndChannels provides a mock function with given fields: team, channels, senderName, senderUserId, senderProfileImage, invites, siteURL, reminderData, message, errorWhenNotSent

func (*ServiceInterface) SendLicenseInactivityEmail

func (_m *ServiceInterface) SendLicenseInactivityEmail(_a0 string, name string, locale string, siteURL string) error

SendLicenseInactivityEmail provides a mock function with given fields: _a0, name, locale, siteURL

func (*ServiceInterface) SendLicenseUpForRenewalEmail

func (_m *ServiceInterface) SendLicenseUpForRenewalEmail(_a0 string, name string, locale string, siteURL string, renewalLink string, daysToExpiration int) error

SendLicenseUpForRenewalEmail provides a mock function with given fields: _a0, name, locale, siteURL, renewalLink, daysToExpiration

func (*ServiceInterface) SendMailWithEmbeddedFiles

func (_m *ServiceInterface) SendMailWithEmbeddedFiles(to string, subject string, htmlBody string, embeddedFiles map[string]io.Reader) error

SendMailWithEmbeddedFiles provides a mock function with given fields: to, subject, htmlBody, embeddedFiles

func (*ServiceInterface) SendMfaChangeEmail

func (_m *ServiceInterface) SendMfaChangeEmail(_a0 string, activated bool, locale string, siteURL string) error

SendMfaChangeEmail provides a mock function with given fields: _a0, activated, locale, siteURL

func (*ServiceInterface) SendNoCardPaymentFailedEmail

func (_m *ServiceInterface) SendNoCardPaymentFailedEmail(_a0 string, locale string, siteURL string) error

SendNoCardPaymentFailedEmail provides a mock function with given fields: _a0, locale, siteURL

func (*ServiceInterface) SendNotificationMail

func (_m *ServiceInterface) SendNotificationMail(to string, subject string, htmlBody string) error

SendNotificationMail provides a mock function with given fields: to, subject, htmlBody

func (*ServiceInterface) SendPasswordChangeEmail

func (_m *ServiceInterface) SendPasswordChangeEmail(_a0 string, method string, locale string, siteURL string) error

SendPasswordChangeEmail provides a mock function with given fields: _a0, method, locale, siteURL

func (*ServiceInterface) SendPasswordResetEmail

func (_m *ServiceInterface) SendPasswordResetEmail(_a0 string, token *model.Token, locale string, siteURL string) (bool, error)

SendPasswordResetEmail provides a mock function with given fields: _a0, token, locale, siteURL

func (*ServiceInterface) SendPaymentFailedEmail

func (_m *ServiceInterface) SendPaymentFailedEmail(_a0 string, locale string, failedPayment *model.FailedPayment, siteURL string) (bool, error)

SendPaymentFailedEmail provides a mock function with given fields: _a0, locale, failedPayment, siteURL

func (*ServiceInterface) SendRemoveExpiredLicenseEmail

func (_m *ServiceInterface) SendRemoveExpiredLicenseEmail(renewalLink string, _a1 string, locale string, siteURL string) error

SendRemoveExpiredLicenseEmail provides a mock function with given fields: renewalLink, _a1, locale, siteURL

func (*ServiceInterface) SendSignInChangeEmail

func (_m *ServiceInterface) SendSignInChangeEmail(_a0 string, method string, locale string, siteURL string) error

SendSignInChangeEmail provides a mock function with given fields: _a0, method, locale, siteURL

func (*ServiceInterface) SendUserAccessTokenAddedEmail

func (_m *ServiceInterface) SendUserAccessTokenAddedEmail(_a0 string, locale string, siteURL string) error

SendUserAccessTokenAddedEmail provides a mock function with given fields: _a0, locale, siteURL

func (*ServiceInterface) SendVerifyEmail

func (_m *ServiceInterface) SendVerifyEmail(userEmail string, locale string, siteURL string, token string, redirect string) error

SendVerifyEmail provides a mock function with given fields: userEmail, locale, siteURL, token, redirect

func (*ServiceInterface) SendWelcomeEmail

func (_m *ServiceInterface) SendWelcomeEmail(userID string, _a1 string, verified bool, disableWelcomeEmail bool, locale string, siteURL string, redirect string) error

SendWelcomeEmail provides a mock function with given fields: userID, _a1, verified, disableWelcomeEmail, locale, siteURL, redirect

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL