2025-06-10 14:04:57 -04:00
// Code generated by mockery v2.53.4. DO NOT EDIT.
2020-02-14 15:47:43 -05:00
// Regenerate this file using `make einterfaces-mocks`.
package mocks
import (
2023-06-11 01:24:35 -04:00
model "github.com/mattermost/mattermost/server/public/model"
2023-10-06 16:43:21 -04:00
request "github.com/mattermost/mattermost/server/public/shared/request"
2020-02-14 15:47:43 -05:00
mock "github.com/stretchr/testify/mock"
)
// NotificationInterface is an autogenerated mock type for the NotificationInterface type
type NotificationInterface struct {
mock . Mock
}
2025-06-10 14:04:57 -04:00
// CheckLicense provides a mock function with no fields
2020-02-14 15:47:43 -05:00
func ( _m * NotificationInterface ) CheckLicense ( ) * model . AppError {
ret := _m . Called ( )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for CheckLicense" )
}
2020-02-14 15:47:43 -05:00
var r0 * model . AppError
if rf , ok := ret . Get ( 0 ) . ( func ( ) * model . AppError ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . AppError )
}
}
return r0
}
2025-09-10 09:11:32 -04:00
// GetNotificationMessage provides a mock function with given fields: rctx, ack, userID
func ( _m * NotificationInterface ) GetNotificationMessage ( rctx request . CTX , ack * model . PushNotificationAck , userID string ) ( * model . PushNotification , * model . AppError ) {
ret := _m . Called ( rctx , ack , userID )
2020-02-14 15:47:43 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetNotificationMessage" )
}
2020-02-14 15:47:43 -05:00
var r0 * model . PushNotification
2023-04-10 04:50:57 -04:00
var r1 * model . AppError
2023-10-30 11:33:37 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( request . CTX , * model . PushNotificationAck , string ) ( * model . PushNotification , * model . AppError ) ) ; ok {
2025-09-10 09:11:32 -04:00
return rf ( rctx , ack , userID )
2023-04-10 04:50:57 -04:00
}
2023-10-30 11:33:37 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( request . CTX , * model . PushNotificationAck , string ) * model . PushNotification ) ; ok {
2025-09-10 09:11:32 -04:00
r0 = rf ( rctx , ack , userID )
2020-02-14 15:47:43 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . PushNotification )
}
}
2023-10-30 11:33:37 -04:00
if rf , ok := ret . Get ( 1 ) . ( func ( request . CTX , * model . PushNotificationAck , string ) * model . AppError ) ; ok {
2025-09-10 09:11:32 -04:00
r1 = rf ( rctx , ack , userID )
2020-02-14 15:47:43 -05:00
} else {
if ret . Get ( 1 ) != nil {
r1 = ret . Get ( 1 ) . ( * model . AppError )
}
}
return r0 , r1
}
2023-04-10 04:50:57 -04:00
2024-04-12 22:45:59 -04:00
// NewNotificationInterface creates a new instance of NotificationInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewNotificationInterface ( t interface {
2023-04-10 04:50:57 -04:00
mock . TestingT
Cleanup ( func ( ) )
2024-04-12 22:45:59 -04:00
} ) * NotificationInterface {
2023-04-10 04:50:57 -04:00
mock := & NotificationInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}