github.com/wgh-/mattermost-server@v4.8.0-rc2+incompatible/store/storetest/mocks/UserStore.go (about)

     1  // Code generated by mockery v1.0.0
     2  
     3  // Regenerate this file using `make store-mocks`.
     4  
     5  package mocks
     6  
     7  import mock "github.com/stretchr/testify/mock"
     8  import model "github.com/mattermost/mattermost-server/model"
     9  import store "github.com/mattermost/mattermost-server/store"
    10  
    11  // UserStore is an autogenerated mock type for the UserStore type
    12  type UserStore struct {
    13  	mock.Mock
    14  }
    15  
    16  // AnalyticsActiveCount provides a mock function with given fields: time
    17  func (_m *UserStore) AnalyticsActiveCount(time int64) store.StoreChannel {
    18  	ret := _m.Called(time)
    19  
    20  	var r0 store.StoreChannel
    21  	if rf, ok := ret.Get(0).(func(int64) store.StoreChannel); ok {
    22  		r0 = rf(time)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).(store.StoreChannel)
    26  		}
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // AnalyticsGetInactiveUsersCount provides a mock function with given fields:
    33  func (_m *UserStore) AnalyticsGetInactiveUsersCount() store.StoreChannel {
    34  	ret := _m.Called()
    35  
    36  	var r0 store.StoreChannel
    37  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
    38  		r0 = rf()
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).(store.StoreChannel)
    42  		}
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // AnalyticsGetSystemAdminCount provides a mock function with given fields:
    49  func (_m *UserStore) AnalyticsGetSystemAdminCount() store.StoreChannel {
    50  	ret := _m.Called()
    51  
    52  	var r0 store.StoreChannel
    53  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
    54  		r0 = rf()
    55  	} else {
    56  		if ret.Get(0) != nil {
    57  			r0 = ret.Get(0).(store.StoreChannel)
    58  		}
    59  	}
    60  
    61  	return r0
    62  }
    63  
    64  // AnalyticsUniqueUserCount provides a mock function with given fields: teamId
    65  func (_m *UserStore) AnalyticsUniqueUserCount(teamId string) store.StoreChannel {
    66  	ret := _m.Called(teamId)
    67  
    68  	var r0 store.StoreChannel
    69  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
    70  		r0 = rf(teamId)
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(store.StoreChannel)
    74  		}
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // Get provides a mock function with given fields: id
    81  func (_m *UserStore) Get(id string) store.StoreChannel {
    82  	ret := _m.Called(id)
    83  
    84  	var r0 store.StoreChannel
    85  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
    86  		r0 = rf(id)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(store.StoreChannel)
    90  		}
    91  	}
    92  
    93  	return r0
    94  }
    95  
    96  // GetAll provides a mock function with given fields:
    97  func (_m *UserStore) GetAll() store.StoreChannel {
    98  	ret := _m.Called()
    99  
   100  	var r0 store.StoreChannel
   101  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   102  		r0 = rf()
   103  	} else {
   104  		if ret.Get(0) != nil {
   105  			r0 = ret.Get(0).(store.StoreChannel)
   106  		}
   107  	}
   108  
   109  	return r0
   110  }
   111  
   112  // GetAllProfiles provides a mock function with given fields: offset, limit
   113  func (_m *UserStore) GetAllProfiles(offset int, limit int) store.StoreChannel {
   114  	ret := _m.Called(offset, limit)
   115  
   116  	var r0 store.StoreChannel
   117  	if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok {
   118  		r0 = rf(offset, limit)
   119  	} else {
   120  		if ret.Get(0) != nil {
   121  			r0 = ret.Get(0).(store.StoreChannel)
   122  		}
   123  	}
   124  
   125  	return r0
   126  }
   127  
   128  // GetAllProfilesInChannel provides a mock function with given fields: channelId, allowFromCache
   129  func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) store.StoreChannel {
   130  	ret := _m.Called(channelId, allowFromCache)
   131  
   132  	var r0 store.StoreChannel
   133  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   134  		r0 = rf(channelId, allowFromCache)
   135  	} else {
   136  		if ret.Get(0) != nil {
   137  			r0 = ret.Get(0).(store.StoreChannel)
   138  		}
   139  	}
   140  
   141  	return r0
   142  }
   143  
   144  // GetAllUsingAuthService provides a mock function with given fields: authService
   145  func (_m *UserStore) GetAllUsingAuthService(authService string) store.StoreChannel {
   146  	ret := _m.Called(authService)
   147  
   148  	var r0 store.StoreChannel
   149  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   150  		r0 = rf(authService)
   151  	} else {
   152  		if ret.Get(0) != nil {
   153  			r0 = ret.Get(0).(store.StoreChannel)
   154  		}
   155  	}
   156  
   157  	return r0
   158  }
   159  
   160  // GetByAuth provides a mock function with given fields: authData, authService
   161  func (_m *UserStore) GetByAuth(authData *string, authService string) store.StoreChannel {
   162  	ret := _m.Called(authData, authService)
   163  
   164  	var r0 store.StoreChannel
   165  	if rf, ok := ret.Get(0).(func(*string, string) store.StoreChannel); ok {
   166  		r0 = rf(authData, authService)
   167  	} else {
   168  		if ret.Get(0) != nil {
   169  			r0 = ret.Get(0).(store.StoreChannel)
   170  		}
   171  	}
   172  
   173  	return r0
   174  }
   175  
   176  // GetByEmail provides a mock function with given fields: email
   177  func (_m *UserStore) GetByEmail(email string) store.StoreChannel {
   178  	ret := _m.Called(email)
   179  
   180  	var r0 store.StoreChannel
   181  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   182  		r0 = rf(email)
   183  	} else {
   184  		if ret.Get(0) != nil {
   185  			r0 = ret.Get(0).(store.StoreChannel)
   186  		}
   187  	}
   188  
   189  	return r0
   190  }
   191  
   192  // GetByUsername provides a mock function with given fields: username
   193  func (_m *UserStore) GetByUsername(username string) store.StoreChannel {
   194  	ret := _m.Called(username)
   195  
   196  	var r0 store.StoreChannel
   197  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   198  		r0 = rf(username)
   199  	} else {
   200  		if ret.Get(0) != nil {
   201  			r0 = ret.Get(0).(store.StoreChannel)
   202  		}
   203  	}
   204  
   205  	return r0
   206  }
   207  
   208  // GetEtagForAllProfiles provides a mock function with given fields:
   209  func (_m *UserStore) GetEtagForAllProfiles() store.StoreChannel {
   210  	ret := _m.Called()
   211  
   212  	var r0 store.StoreChannel
   213  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   214  		r0 = rf()
   215  	} else {
   216  		if ret.Get(0) != nil {
   217  			r0 = ret.Get(0).(store.StoreChannel)
   218  		}
   219  	}
   220  
   221  	return r0
   222  }
   223  
   224  // GetEtagForProfiles provides a mock function with given fields: teamId
   225  func (_m *UserStore) GetEtagForProfiles(teamId string) store.StoreChannel {
   226  	ret := _m.Called(teamId)
   227  
   228  	var r0 store.StoreChannel
   229  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   230  		r0 = rf(teamId)
   231  	} else {
   232  		if ret.Get(0) != nil {
   233  			r0 = ret.Get(0).(store.StoreChannel)
   234  		}
   235  	}
   236  
   237  	return r0
   238  }
   239  
   240  // GetEtagForProfilesNotInTeam provides a mock function with given fields: teamId
   241  func (_m *UserStore) GetEtagForProfilesNotInTeam(teamId string) store.StoreChannel {
   242  	ret := _m.Called(teamId)
   243  
   244  	var r0 store.StoreChannel
   245  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   246  		r0 = rf(teamId)
   247  	} else {
   248  		if ret.Get(0) != nil {
   249  			r0 = ret.Get(0).(store.StoreChannel)
   250  		}
   251  	}
   252  
   253  	return r0
   254  }
   255  
   256  // GetForLogin provides a mock function with given fields: loginId, allowSignInWithUsername, allowSignInWithEmail, ldapEnabled
   257  func (_m *UserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool, ldapEnabled bool) store.StoreChannel {
   258  	ret := _m.Called(loginId, allowSignInWithUsername, allowSignInWithEmail, ldapEnabled)
   259  
   260  	var r0 store.StoreChannel
   261  	if rf, ok := ret.Get(0).(func(string, bool, bool, bool) store.StoreChannel); ok {
   262  		r0 = rf(loginId, allowSignInWithUsername, allowSignInWithEmail, ldapEnabled)
   263  	} else {
   264  		if ret.Get(0) != nil {
   265  			r0 = ret.Get(0).(store.StoreChannel)
   266  		}
   267  	}
   268  
   269  	return r0
   270  }
   271  
   272  // GetNewUsersForTeam provides a mock function with given fields: teamId, offset, limit
   273  func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int) store.StoreChannel {
   274  	ret := _m.Called(teamId, offset, limit)
   275  
   276  	var r0 store.StoreChannel
   277  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   278  		r0 = rf(teamId, offset, limit)
   279  	} else {
   280  		if ret.Get(0) != nil {
   281  			r0 = ret.Get(0).(store.StoreChannel)
   282  		}
   283  	}
   284  
   285  	return r0
   286  }
   287  
   288  // GetProfileByIds provides a mock function with given fields: userId, allowFromCache
   289  func (_m *UserStore) GetProfileByIds(userId []string, allowFromCache bool) store.StoreChannel {
   290  	ret := _m.Called(userId, allowFromCache)
   291  
   292  	var r0 store.StoreChannel
   293  	if rf, ok := ret.Get(0).(func([]string, bool) store.StoreChannel); ok {
   294  		r0 = rf(userId, allowFromCache)
   295  	} else {
   296  		if ret.Get(0) != nil {
   297  			r0 = ret.Get(0).(store.StoreChannel)
   298  		}
   299  	}
   300  
   301  	return r0
   302  }
   303  
   304  // GetProfiles provides a mock function with given fields: teamId, offset, limit
   305  func (_m *UserStore) GetProfiles(teamId string, offset int, limit int) store.StoreChannel {
   306  	ret := _m.Called(teamId, offset, limit)
   307  
   308  	var r0 store.StoreChannel
   309  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   310  		r0 = rf(teamId, offset, limit)
   311  	} else {
   312  		if ret.Get(0) != nil {
   313  			r0 = ret.Get(0).(store.StoreChannel)
   314  		}
   315  	}
   316  
   317  	return r0
   318  }
   319  
   320  // GetProfilesByUsernames provides a mock function with given fields: usernames, teamId
   321  func (_m *UserStore) GetProfilesByUsernames(usernames []string, teamId string) store.StoreChannel {
   322  	ret := _m.Called(usernames, teamId)
   323  
   324  	var r0 store.StoreChannel
   325  	if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok {
   326  		r0 = rf(usernames, teamId)
   327  	} else {
   328  		if ret.Get(0) != nil {
   329  			r0 = ret.Get(0).(store.StoreChannel)
   330  		}
   331  	}
   332  
   333  	return r0
   334  }
   335  
   336  // GetProfilesInChannel provides a mock function with given fields: channelId, offset, limit
   337  func (_m *UserStore) GetProfilesInChannel(channelId string, offset int, limit int) store.StoreChannel {
   338  	ret := _m.Called(channelId, offset, limit)
   339  
   340  	var r0 store.StoreChannel
   341  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   342  		r0 = rf(channelId, offset, limit)
   343  	} else {
   344  		if ret.Get(0) != nil {
   345  			r0 = ret.Get(0).(store.StoreChannel)
   346  		}
   347  	}
   348  
   349  	return r0
   350  }
   351  
   352  // GetProfilesNotInChannel provides a mock function with given fields: teamId, channelId, offset, limit
   353  func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, offset int, limit int) store.StoreChannel {
   354  	ret := _m.Called(teamId, channelId, offset, limit)
   355  
   356  	var r0 store.StoreChannel
   357  	if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok {
   358  		r0 = rf(teamId, channelId, offset, limit)
   359  	} else {
   360  		if ret.Get(0) != nil {
   361  			r0 = ret.Get(0).(store.StoreChannel)
   362  		}
   363  	}
   364  
   365  	return r0
   366  }
   367  
   368  // GetProfilesNotInTeam provides a mock function with given fields: teamId, offset, limit
   369  func (_m *UserStore) GetProfilesNotInTeam(teamId string, offset int, limit int) store.StoreChannel {
   370  	ret := _m.Called(teamId, offset, limit)
   371  
   372  	var r0 store.StoreChannel
   373  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   374  		r0 = rf(teamId, offset, limit)
   375  	} else {
   376  		if ret.Get(0) != nil {
   377  			r0 = ret.Get(0).(store.StoreChannel)
   378  		}
   379  	}
   380  
   381  	return r0
   382  }
   383  
   384  // GetProfilesWithoutTeam provides a mock function with given fields: offset, limit
   385  func (_m *UserStore) GetProfilesWithoutTeam(offset int, limit int) store.StoreChannel {
   386  	ret := _m.Called(offset, limit)
   387  
   388  	var r0 store.StoreChannel
   389  	if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok {
   390  		r0 = rf(offset, limit)
   391  	} else {
   392  		if ret.Get(0) != nil {
   393  			r0 = ret.Get(0).(store.StoreChannel)
   394  		}
   395  	}
   396  
   397  	return r0
   398  }
   399  
   400  // GetRecentlyActiveUsersForTeam provides a mock function with given fields: teamId, offset, limit
   401  func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int) store.StoreChannel {
   402  	ret := _m.Called(teamId, offset, limit)
   403  
   404  	var r0 store.StoreChannel
   405  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   406  		r0 = rf(teamId, offset, limit)
   407  	} else {
   408  		if ret.Get(0) != nil {
   409  			r0 = ret.Get(0).(store.StoreChannel)
   410  		}
   411  	}
   412  
   413  	return r0
   414  }
   415  
   416  // GetSystemAdminProfiles provides a mock function with given fields:
   417  func (_m *UserStore) GetSystemAdminProfiles() store.StoreChannel {
   418  	ret := _m.Called()
   419  
   420  	var r0 store.StoreChannel
   421  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   422  		r0 = rf()
   423  	} else {
   424  		if ret.Get(0) != nil {
   425  			r0 = ret.Get(0).(store.StoreChannel)
   426  		}
   427  	}
   428  
   429  	return r0
   430  }
   431  
   432  // GetTotalUsersCount provides a mock function with given fields:
   433  func (_m *UserStore) GetTotalUsersCount() store.StoreChannel {
   434  	ret := _m.Called()
   435  
   436  	var r0 store.StoreChannel
   437  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   438  		r0 = rf()
   439  	} else {
   440  		if ret.Get(0) != nil {
   441  			r0 = ret.Get(0).(store.StoreChannel)
   442  		}
   443  	}
   444  
   445  	return r0
   446  }
   447  
   448  // GetUnreadCount provides a mock function with given fields: userId
   449  func (_m *UserStore) GetUnreadCount(userId string) store.StoreChannel {
   450  	ret := _m.Called(userId)
   451  
   452  	var r0 store.StoreChannel
   453  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   454  		r0 = rf(userId)
   455  	} else {
   456  		if ret.Get(0) != nil {
   457  			r0 = ret.Get(0).(store.StoreChannel)
   458  		}
   459  	}
   460  
   461  	return r0
   462  }
   463  
   464  // GetUnreadCountForChannel provides a mock function with given fields: userId, channelId
   465  func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) store.StoreChannel {
   466  	ret := _m.Called(userId, channelId)
   467  
   468  	var r0 store.StoreChannel
   469  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   470  		r0 = rf(userId, channelId)
   471  	} else {
   472  		if ret.Get(0) != nil {
   473  			r0 = ret.Get(0).(store.StoreChannel)
   474  		}
   475  	}
   476  
   477  	return r0
   478  }
   479  
   480  // InvalidatProfileCacheForUser provides a mock function with given fields: userId
   481  func (_m *UserStore) InvalidatProfileCacheForUser(userId string) {
   482  	_m.Called(userId)
   483  }
   484  
   485  // InvalidateProfilesInChannelCache provides a mock function with given fields: channelId
   486  func (_m *UserStore) InvalidateProfilesInChannelCache(channelId string) {
   487  	_m.Called(channelId)
   488  }
   489  
   490  // InvalidateProfilesInChannelCacheByUser provides a mock function with given fields: userId
   491  func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userId string) {
   492  	_m.Called(userId)
   493  }
   494  
   495  // PermanentDelete provides a mock function with given fields: userId
   496  func (_m *UserStore) PermanentDelete(userId string) store.StoreChannel {
   497  	ret := _m.Called(userId)
   498  
   499  	var r0 store.StoreChannel
   500  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   501  		r0 = rf(userId)
   502  	} else {
   503  		if ret.Get(0) != nil {
   504  			r0 = ret.Get(0).(store.StoreChannel)
   505  		}
   506  	}
   507  
   508  	return r0
   509  }
   510  
   511  // Save provides a mock function with given fields: user
   512  func (_m *UserStore) Save(user *model.User) store.StoreChannel {
   513  	ret := _m.Called(user)
   514  
   515  	var r0 store.StoreChannel
   516  	if rf, ok := ret.Get(0).(func(*model.User) store.StoreChannel); ok {
   517  		r0 = rf(user)
   518  	} else {
   519  		if ret.Get(0) != nil {
   520  			r0 = ret.Get(0).(store.StoreChannel)
   521  		}
   522  	}
   523  
   524  	return r0
   525  }
   526  
   527  // Search provides a mock function with given fields: teamId, term, options
   528  func (_m *UserStore) Search(teamId string, term string, options map[string]bool) store.StoreChannel {
   529  	ret := _m.Called(teamId, term, options)
   530  
   531  	var r0 store.StoreChannel
   532  	if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok {
   533  		r0 = rf(teamId, term, options)
   534  	} else {
   535  		if ret.Get(0) != nil {
   536  			r0 = ret.Get(0).(store.StoreChannel)
   537  		}
   538  	}
   539  
   540  	return r0
   541  }
   542  
   543  // SearchInChannel provides a mock function with given fields: channelId, term, options
   544  func (_m *UserStore) SearchInChannel(channelId string, term string, options map[string]bool) store.StoreChannel {
   545  	ret := _m.Called(channelId, term, options)
   546  
   547  	var r0 store.StoreChannel
   548  	if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok {
   549  		r0 = rf(channelId, term, options)
   550  	} else {
   551  		if ret.Get(0) != nil {
   552  			r0 = ret.Get(0).(store.StoreChannel)
   553  		}
   554  	}
   555  
   556  	return r0
   557  }
   558  
   559  // SearchNotInChannel provides a mock function with given fields: teamId, channelId, term, options
   560  func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options map[string]bool) store.StoreChannel {
   561  	ret := _m.Called(teamId, channelId, term, options)
   562  
   563  	var r0 store.StoreChannel
   564  	if rf, ok := ret.Get(0).(func(string, string, string, map[string]bool) store.StoreChannel); ok {
   565  		r0 = rf(teamId, channelId, term, options)
   566  	} else {
   567  		if ret.Get(0) != nil {
   568  			r0 = ret.Get(0).(store.StoreChannel)
   569  		}
   570  	}
   571  
   572  	return r0
   573  }
   574  
   575  // SearchNotInTeam provides a mock function with given fields: notInTeamId, term, options
   576  func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options map[string]bool) store.StoreChannel {
   577  	ret := _m.Called(notInTeamId, term, options)
   578  
   579  	var r0 store.StoreChannel
   580  	if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok {
   581  		r0 = rf(notInTeamId, term, options)
   582  	} else {
   583  		if ret.Get(0) != nil {
   584  			r0 = ret.Get(0).(store.StoreChannel)
   585  		}
   586  	}
   587  
   588  	return r0
   589  }
   590  
   591  // SearchWithoutTeam provides a mock function with given fields: term, options
   592  func (_m *UserStore) SearchWithoutTeam(term string, options map[string]bool) store.StoreChannel {
   593  	ret := _m.Called(term, options)
   594  
   595  	var r0 store.StoreChannel
   596  	if rf, ok := ret.Get(0).(func(string, map[string]bool) store.StoreChannel); ok {
   597  		r0 = rf(term, options)
   598  	} else {
   599  		if ret.Get(0) != nil {
   600  			r0 = ret.Get(0).(store.StoreChannel)
   601  		}
   602  	}
   603  
   604  	return r0
   605  }
   606  
   607  // Update provides a mock function with given fields: user, allowRoleUpdate
   608  func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) store.StoreChannel {
   609  	ret := _m.Called(user, allowRoleUpdate)
   610  
   611  	var r0 store.StoreChannel
   612  	if rf, ok := ret.Get(0).(func(*model.User, bool) store.StoreChannel); ok {
   613  		r0 = rf(user, allowRoleUpdate)
   614  	} else {
   615  		if ret.Get(0) != nil {
   616  			r0 = ret.Get(0).(store.StoreChannel)
   617  		}
   618  	}
   619  
   620  	return r0
   621  }
   622  
   623  // UpdateAuthData provides a mock function with given fields: userId, service, authData, email, resetMfa
   624  func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) store.StoreChannel {
   625  	ret := _m.Called(userId, service, authData, email, resetMfa)
   626  
   627  	var r0 store.StoreChannel
   628  	if rf, ok := ret.Get(0).(func(string, string, *string, string, bool) store.StoreChannel); ok {
   629  		r0 = rf(userId, service, authData, email, resetMfa)
   630  	} else {
   631  		if ret.Get(0) != nil {
   632  			r0 = ret.Get(0).(store.StoreChannel)
   633  		}
   634  	}
   635  
   636  	return r0
   637  }
   638  
   639  // UpdateFailedPasswordAttempts provides a mock function with given fields: userId, attempts
   640  func (_m *UserStore) UpdateFailedPasswordAttempts(userId string, attempts int) store.StoreChannel {
   641  	ret := _m.Called(userId, attempts)
   642  
   643  	var r0 store.StoreChannel
   644  	if rf, ok := ret.Get(0).(func(string, int) store.StoreChannel); ok {
   645  		r0 = rf(userId, attempts)
   646  	} else {
   647  		if ret.Get(0) != nil {
   648  			r0 = ret.Get(0).(store.StoreChannel)
   649  		}
   650  	}
   651  
   652  	return r0
   653  }
   654  
   655  // UpdateLastPictureUpdate provides a mock function with given fields: userId
   656  func (_m *UserStore) UpdateLastPictureUpdate(userId string) store.StoreChannel {
   657  	ret := _m.Called(userId)
   658  
   659  	var r0 store.StoreChannel
   660  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   661  		r0 = rf(userId)
   662  	} else {
   663  		if ret.Get(0) != nil {
   664  			r0 = ret.Get(0).(store.StoreChannel)
   665  		}
   666  	}
   667  
   668  	return r0
   669  }
   670  
   671  // UpdateMfaActive provides a mock function with given fields: userId, active
   672  func (_m *UserStore) UpdateMfaActive(userId string, active bool) store.StoreChannel {
   673  	ret := _m.Called(userId, active)
   674  
   675  	var r0 store.StoreChannel
   676  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   677  		r0 = rf(userId, active)
   678  	} else {
   679  		if ret.Get(0) != nil {
   680  			r0 = ret.Get(0).(store.StoreChannel)
   681  		}
   682  	}
   683  
   684  	return r0
   685  }
   686  
   687  // UpdateMfaSecret provides a mock function with given fields: userId, secret
   688  func (_m *UserStore) UpdateMfaSecret(userId string, secret string) store.StoreChannel {
   689  	ret := _m.Called(userId, secret)
   690  
   691  	var r0 store.StoreChannel
   692  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   693  		r0 = rf(userId, secret)
   694  	} else {
   695  		if ret.Get(0) != nil {
   696  			r0 = ret.Get(0).(store.StoreChannel)
   697  		}
   698  	}
   699  
   700  	return r0
   701  }
   702  
   703  // UpdatePassword provides a mock function with given fields: userId, newPassword
   704  func (_m *UserStore) UpdatePassword(userId string, newPassword string) store.StoreChannel {
   705  	ret := _m.Called(userId, newPassword)
   706  
   707  	var r0 store.StoreChannel
   708  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   709  		r0 = rf(userId, newPassword)
   710  	} else {
   711  		if ret.Get(0) != nil {
   712  			r0 = ret.Get(0).(store.StoreChannel)
   713  		}
   714  	}
   715  
   716  	return r0
   717  }
   718  
   719  // UpdateUpdateAt provides a mock function with given fields: userId
   720  func (_m *UserStore) UpdateUpdateAt(userId string) store.StoreChannel {
   721  	ret := _m.Called(userId)
   722  
   723  	var r0 store.StoreChannel
   724  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   725  		r0 = rf(userId)
   726  	} else {
   727  		if ret.Get(0) != nil {
   728  			r0 = ret.Get(0).(store.StoreChannel)
   729  		}
   730  	}
   731  
   732  	return r0
   733  }
   734  
   735  // VerifyEmail provides a mock function with given fields: userId
   736  func (_m *UserStore) VerifyEmail(userId string) store.StoreChannel {
   737  	ret := _m.Called(userId)
   738  
   739  	var r0 store.StoreChannel
   740  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   741  		r0 = rf(userId)
   742  	} else {
   743  		if ret.Get(0) != nil {
   744  			r0 = ret.Get(0).(store.StoreChannel)
   745  		}
   746  	}
   747  
   748  	return r0
   749  }