github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/einterfaces/mocks/AccountMigrationInterface.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make einterfaces-mocks`.
     4  
     5  package mocks
     6  
     7  import (
     8  	model "github.com/vnforks/kid/v5/model"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // AccountMigrationInterface is an autogenerated mock type for the AccountMigrationInterface type
    13  type AccountMigrationInterface struct {
    14  	mock.Mock
    15  }
    16  
    17  // MigrateToLdap provides a mock function with given fields: fromAuthService, forignUserFieldNameToMatch, force, dryRun
    18  func (_m *AccountMigrationInterface) MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string, force bool, dryRun bool) *model.AppError {
    19  	ret := _m.Called(fromAuthService, forignUserFieldNameToMatch, force, dryRun)
    20  
    21  	var r0 *model.AppError
    22  	if rf, ok := ret.Get(0).(func(string, string, bool, bool) *model.AppError); ok {
    23  		r0 = rf(fromAuthService, forignUserFieldNameToMatch, force, dryRun)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*model.AppError)
    27  		}
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // MigrateToSaml provides a mock function with given fields: fromAuthService, usersMap, auto, dryRun
    34  func (_m *AccountMigrationInterface) MigrateToSaml(fromAuthService string, usersMap map[string]string, auto bool, dryRun bool) *model.AppError {
    35  	ret := _m.Called(fromAuthService, usersMap, auto, dryRun)
    36  
    37  	var r0 *model.AppError
    38  	if rf, ok := ret.Get(0).(func(string, map[string]string, bool, bool) *model.AppError); ok {
    39  		r0 = rf(fromAuthService, usersMap, auto, dryRun)
    40  	} else {
    41  		if ret.Get(0) != nil {
    42  			r0 = ret.Get(0).(*model.AppError)
    43  		}
    44  	}
    45  
    46  	return r0
    47  }