2025-06-10 14:04:57 -04:00
// Code generated by mockery v2.53.4. DO NOT EDIT.
2019-07-08 11:32:29 -04:00
// Regenerate this file using `make einterfaces-mocks`.
package mocks
2020-02-14 15:47:43 -05:00
import (
2023-06-11 01:24:35 -04:00
model "github.com/mattermost/mattermost/server/public/model"
2023-09-07 02:50:22 -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"
)
2019-07-08 11:32:29 -04:00
// AccountMigrationInterface is an autogenerated mock type for the AccountMigrationInterface type
type AccountMigrationInterface struct {
mock . Mock
}
2025-09-10 09:11:32 -04:00
// MigrateToLdap provides a mock function with given fields: rctx, fromAuthService, foreignUserFieldNameToMatch, force, dryRun
func ( _m * AccountMigrationInterface ) MigrateToLdap ( rctx request . CTX , fromAuthService string , foreignUserFieldNameToMatch string , force bool , dryRun bool ) * model . AppError {
ret := _m . Called ( rctx , fromAuthService , foreignUserFieldNameToMatch , force , dryRun )
2019-07-08 11:32:29 -04:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for MigrateToLdap" )
}
2019-07-08 11:32:29 -04:00
var r0 * model . AppError
2023-10-30 11:33:37 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( request . CTX , string , string , bool , bool ) * model . AppError ) ; ok {
2025-09-10 09:11:32 -04:00
r0 = rf ( rctx , fromAuthService , foreignUserFieldNameToMatch , force , dryRun )
2019-07-08 11:32:29 -04:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . AppError )
}
}
return r0
}
2025-09-10 09:11:32 -04:00
// MigrateToSaml provides a mock function with given fields: rctx, fromAuthService, usersMap, auto, dryRun
func ( _m * AccountMigrationInterface ) MigrateToSaml ( rctx request . CTX , fromAuthService string , usersMap map [ string ] string , auto bool , dryRun bool ) * model . AppError {
ret := _m . Called ( rctx , fromAuthService , usersMap , auto , dryRun )
2019-07-08 11:32:29 -04:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for MigrateToSaml" )
}
2019-07-08 11:32:29 -04:00
var r0 * model . AppError
2023-10-30 11:33:37 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( request . CTX , string , map [ string ] string , bool , bool ) * model . AppError ) ; ok {
2025-09-10 09:11:32 -04:00
r0 = rf ( rctx , fromAuthService , usersMap , auto , dryRun )
2019-07-08 11:32:29 -04:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . AppError )
}
}
return r0
}
2023-04-10 04:50:57 -04:00
2024-04-12 22:45:59 -04:00
// NewAccountMigrationInterface creates a new instance of AccountMigrationInterface. 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 NewAccountMigrationInterface ( t interface {
2023-04-10 04:50:57 -04:00
mock . TestingT
Cleanup ( func ( ) )
2024-04-12 22:45:59 -04:00
} ) * AccountMigrationInterface {
2023-04-10 04:50:57 -04:00
mock := & AccountMigrationInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}