Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Scott Bishel
2020-06-24 10:01:31 -06:00
коммит произвёл GitHub
родитель 3cf05efdd9
Коммит 23e306bc3a
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@@ -22,4 +22,5 @@ type LdapInterface interface {
GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError)
FirstLoginSync(userID, userAuthService, userAuthData, email string) *model.AppError
UpdateProfilePictureIfNecessary(*model.User, *model.Session)
GetADLdapIdFromSAMLId(authData string) string
}

Просмотреть файл

@@ -87,6 +87,20 @@ func (_m *LdapInterface) FirstLoginSync(userID string, userAuthService string, u
return r0
}
// GetADLdapIdFromSAMLId provides a mock function with given fields: authData
func (_m *LdapInterface) GetADLdapIdFromSAMLId(authData string) string {
ret := _m.Called(authData)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(authData)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetAllGroupsPage provides a mock function with given fields: page, perPage, opts
func (_m *LdapInterface) GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) {
ret := _m.Called(page, perPage, opts)