github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/UserStore.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 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 // ClearAllCustomRoleAssignments provides a mock function with given fields: 65 func (_m *UserStore) ClearAllCustomRoleAssignments() store.StoreChannel { 66 ret := _m.Called() 67 68 var r0 store.StoreChannel 69 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 70 r0 = rf() 71 } else { 72 if ret.Get(0) != nil { 73 r0 = ret.Get(0).(store.StoreChannel) 74 } 75 } 76 77 return r0 78 } 79 80 // ClearCaches provides a mock function with given fields: 81 func (_m *UserStore) ClearCaches() { 82 _m.Called() 83 } 84 85 // Count provides a mock function with given fields: options 86 func (_m *UserStore) Count(options model.UserCountOptions) store.StoreChannel { 87 ret := _m.Called(options) 88 89 var r0 store.StoreChannel 90 if rf, ok := ret.Get(0).(func(model.UserCountOptions) store.StoreChannel); ok { 91 r0 = rf(options) 92 } else { 93 if ret.Get(0) != nil { 94 r0 = ret.Get(0).(store.StoreChannel) 95 } 96 } 97 98 return r0 99 } 100 101 // Get provides a mock function with given fields: id 102 func (_m *UserStore) Get(id string) store.StoreChannel { 103 ret := _m.Called(id) 104 105 var r0 store.StoreChannel 106 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 107 r0 = rf(id) 108 } else { 109 if ret.Get(0) != nil { 110 r0 = ret.Get(0).(store.StoreChannel) 111 } 112 } 113 114 return r0 115 } 116 117 // GetAll provides a mock function with given fields: 118 func (_m *UserStore) GetAll() store.StoreChannel { 119 ret := _m.Called() 120 121 var r0 store.StoreChannel 122 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 123 r0 = rf() 124 } else { 125 if ret.Get(0) != nil { 126 r0 = ret.Get(0).(store.StoreChannel) 127 } 128 } 129 130 return r0 131 } 132 133 // GetAllAfter provides a mock function with given fields: limit, afterId 134 func (_m *UserStore) GetAllAfter(limit int, afterId string) store.StoreChannel { 135 ret := _m.Called(limit, afterId) 136 137 var r0 store.StoreChannel 138 if rf, ok := ret.Get(0).(func(int, string) store.StoreChannel); ok { 139 r0 = rf(limit, afterId) 140 } else { 141 if ret.Get(0) != nil { 142 r0 = ret.Get(0).(store.StoreChannel) 143 } 144 } 145 146 return r0 147 } 148 149 // GetAllProfiles provides a mock function with given fields: options 150 func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) store.StoreChannel { 151 ret := _m.Called(options) 152 153 var r0 store.StoreChannel 154 if rf, ok := ret.Get(0).(func(*model.UserGetOptions) store.StoreChannel); ok { 155 r0 = rf(options) 156 } else { 157 if ret.Get(0) != nil { 158 r0 = ret.Get(0).(store.StoreChannel) 159 } 160 } 161 162 return r0 163 } 164 165 // GetAllProfilesInChannel provides a mock function with given fields: channelId, allowFromCache 166 func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) store.StoreChannel { 167 ret := _m.Called(channelId, allowFromCache) 168 169 var r0 store.StoreChannel 170 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 171 r0 = rf(channelId, allowFromCache) 172 } else { 173 if ret.Get(0) != nil { 174 r0 = ret.Get(0).(store.StoreChannel) 175 } 176 } 177 178 return r0 179 } 180 181 // GetAllUsingAuthService provides a mock function with given fields: authService 182 func (_m *UserStore) GetAllUsingAuthService(authService string) store.StoreChannel { 183 ret := _m.Called(authService) 184 185 var r0 store.StoreChannel 186 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 187 r0 = rf(authService) 188 } else { 189 if ret.Get(0) != nil { 190 r0 = ret.Get(0).(store.StoreChannel) 191 } 192 } 193 194 return r0 195 } 196 197 // GetAnyUnreadPostCountForChannel provides a mock function with given fields: userId, channelId 198 func (_m *UserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) store.StoreChannel { 199 ret := _m.Called(userId, channelId) 200 201 var r0 store.StoreChannel 202 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 203 r0 = rf(userId, channelId) 204 } else { 205 if ret.Get(0) != nil { 206 r0 = ret.Get(0).(store.StoreChannel) 207 } 208 } 209 210 return r0 211 } 212 213 // GetByAuth provides a mock function with given fields: authData, authService 214 func (_m *UserStore) GetByAuth(authData *string, authService string) store.StoreChannel { 215 ret := _m.Called(authData, authService) 216 217 var r0 store.StoreChannel 218 if rf, ok := ret.Get(0).(func(*string, string) store.StoreChannel); ok { 219 r0 = rf(authData, authService) 220 } else { 221 if ret.Get(0) != nil { 222 r0 = ret.Get(0).(store.StoreChannel) 223 } 224 } 225 226 return r0 227 } 228 229 // GetByEmail provides a mock function with given fields: email 230 func (_m *UserStore) GetByEmail(email string) store.StoreChannel { 231 ret := _m.Called(email) 232 233 var r0 store.StoreChannel 234 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 235 r0 = rf(email) 236 } else { 237 if ret.Get(0) != nil { 238 r0 = ret.Get(0).(store.StoreChannel) 239 } 240 } 241 242 return r0 243 } 244 245 // GetByUsername provides a mock function with given fields: username 246 func (_m *UserStore) GetByUsername(username string) store.StoreChannel { 247 ret := _m.Called(username) 248 249 var r0 store.StoreChannel 250 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 251 r0 = rf(username) 252 } else { 253 if ret.Get(0) != nil { 254 r0 = ret.Get(0).(store.StoreChannel) 255 } 256 } 257 258 return r0 259 } 260 261 // GetEtagForAllProfiles provides a mock function with given fields: 262 func (_m *UserStore) GetEtagForAllProfiles() store.StoreChannel { 263 ret := _m.Called() 264 265 var r0 store.StoreChannel 266 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 267 r0 = rf() 268 } else { 269 if ret.Get(0) != nil { 270 r0 = ret.Get(0).(store.StoreChannel) 271 } 272 } 273 274 return r0 275 } 276 277 // GetEtagForProfiles provides a mock function with given fields: teamId 278 func (_m *UserStore) GetEtagForProfiles(teamId string) store.StoreChannel { 279 ret := _m.Called(teamId) 280 281 var r0 store.StoreChannel 282 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 283 r0 = rf(teamId) 284 } else { 285 if ret.Get(0) != nil { 286 r0 = ret.Get(0).(store.StoreChannel) 287 } 288 } 289 290 return r0 291 } 292 293 // GetEtagForProfilesNotInTeam provides a mock function with given fields: teamId 294 func (_m *UserStore) GetEtagForProfilesNotInTeam(teamId string) store.StoreChannel { 295 ret := _m.Called(teamId) 296 297 var r0 store.StoreChannel 298 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 299 r0 = rf(teamId) 300 } else { 301 if ret.Get(0) != nil { 302 r0 = ret.Get(0).(store.StoreChannel) 303 } 304 } 305 306 return r0 307 } 308 309 // GetForLogin provides a mock function with given fields: loginId, allowSignInWithUsername, allowSignInWithEmail 310 func (_m *UserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) store.StoreChannel { 311 ret := _m.Called(loginId, allowSignInWithUsername, allowSignInWithEmail) 312 313 var r0 store.StoreChannel 314 if rf, ok := ret.Get(0).(func(string, bool, bool) store.StoreChannel); ok { 315 r0 = rf(loginId, allowSignInWithUsername, allowSignInWithEmail) 316 } else { 317 if ret.Get(0) != nil { 318 r0 = ret.Get(0).(store.StoreChannel) 319 } 320 } 321 322 return r0 323 } 324 325 // GetNewUsersForTeam provides a mock function with given fields: teamId, offset, limit 326 func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int) store.StoreChannel { 327 ret := _m.Called(teamId, offset, limit) 328 329 var r0 store.StoreChannel 330 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 331 r0 = rf(teamId, offset, limit) 332 } else { 333 if ret.Get(0) != nil { 334 r0 = ret.Get(0).(store.StoreChannel) 335 } 336 } 337 338 return r0 339 } 340 341 // GetProfileByIds provides a mock function with given fields: userId, allowFromCache 342 func (_m *UserStore) GetProfileByIds(userId []string, allowFromCache bool) store.StoreChannel { 343 ret := _m.Called(userId, allowFromCache) 344 345 var r0 store.StoreChannel 346 if rf, ok := ret.Get(0).(func([]string, bool) store.StoreChannel); ok { 347 r0 = rf(userId, allowFromCache) 348 } else { 349 if ret.Get(0) != nil { 350 r0 = ret.Get(0).(store.StoreChannel) 351 } 352 } 353 354 return r0 355 } 356 357 // GetProfiles provides a mock function with given fields: options 358 func (_m *UserStore) GetProfiles(options *model.UserGetOptions) store.StoreChannel { 359 ret := _m.Called(options) 360 361 var r0 store.StoreChannel 362 if rf, ok := ret.Get(0).(func(*model.UserGetOptions) store.StoreChannel); ok { 363 r0 = rf(options) 364 } else { 365 if ret.Get(0) != nil { 366 r0 = ret.Get(0).(store.StoreChannel) 367 } 368 } 369 370 return r0 371 } 372 373 // GetProfilesByUsernames provides a mock function with given fields: usernames, teamId 374 func (_m *UserStore) GetProfilesByUsernames(usernames []string, teamId string) store.StoreChannel { 375 ret := _m.Called(usernames, teamId) 376 377 var r0 store.StoreChannel 378 if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok { 379 r0 = rf(usernames, teamId) 380 } else { 381 if ret.Get(0) != nil { 382 r0 = ret.Get(0).(store.StoreChannel) 383 } 384 } 385 386 return r0 387 } 388 389 // GetProfilesInChannel provides a mock function with given fields: channelId, offset, limit 390 func (_m *UserStore) GetProfilesInChannel(channelId string, offset int, limit int) store.StoreChannel { 391 ret := _m.Called(channelId, offset, limit) 392 393 var r0 store.StoreChannel 394 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 395 r0 = rf(channelId, offset, limit) 396 } else { 397 if ret.Get(0) != nil { 398 r0 = ret.Get(0).(store.StoreChannel) 399 } 400 } 401 402 return r0 403 } 404 405 // GetProfilesInChannelByStatus provides a mock function with given fields: channelId, offset, limit 406 func (_m *UserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) store.StoreChannel { 407 ret := _m.Called(channelId, offset, limit) 408 409 var r0 store.StoreChannel 410 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 411 r0 = rf(channelId, offset, limit) 412 } else { 413 if ret.Get(0) != nil { 414 r0 = ret.Get(0).(store.StoreChannel) 415 } 416 } 417 418 return r0 419 } 420 421 // GetProfilesNotInChannel provides a mock function with given fields: teamId, channelId, offset, limit 422 func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, offset int, limit int) store.StoreChannel { 423 ret := _m.Called(teamId, channelId, offset, limit) 424 425 var r0 store.StoreChannel 426 if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok { 427 r0 = rf(teamId, channelId, offset, limit) 428 } else { 429 if ret.Get(0) != nil { 430 r0 = ret.Get(0).(store.StoreChannel) 431 } 432 } 433 434 return r0 435 } 436 437 // GetProfilesNotInTeam provides a mock function with given fields: teamId, offset, limit 438 func (_m *UserStore) GetProfilesNotInTeam(teamId string, offset int, limit int) store.StoreChannel { 439 ret := _m.Called(teamId, offset, limit) 440 441 var r0 store.StoreChannel 442 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 443 r0 = rf(teamId, offset, limit) 444 } else { 445 if ret.Get(0) != nil { 446 r0 = ret.Get(0).(store.StoreChannel) 447 } 448 } 449 450 return r0 451 } 452 453 // GetProfilesWithoutTeam provides a mock function with given fields: offset, limit 454 func (_m *UserStore) GetProfilesWithoutTeam(offset int, limit int) store.StoreChannel { 455 ret := _m.Called(offset, limit) 456 457 var r0 store.StoreChannel 458 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 459 r0 = rf(offset, limit) 460 } else { 461 if ret.Get(0) != nil { 462 r0 = ret.Get(0).(store.StoreChannel) 463 } 464 } 465 466 return r0 467 } 468 469 // GetRecentlyActiveUsersForTeam provides a mock function with given fields: teamId, offset, limit 470 func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int) store.StoreChannel { 471 ret := _m.Called(teamId, offset, limit) 472 473 var r0 store.StoreChannel 474 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 475 r0 = rf(teamId, offset, limit) 476 } else { 477 if ret.Get(0) != nil { 478 r0 = ret.Get(0).(store.StoreChannel) 479 } 480 } 481 482 return r0 483 } 484 485 // GetSystemAdminProfiles provides a mock function with given fields: 486 func (_m *UserStore) GetSystemAdminProfiles() store.StoreChannel { 487 ret := _m.Called() 488 489 var r0 store.StoreChannel 490 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 491 r0 = rf() 492 } else { 493 if ret.Get(0) != nil { 494 r0 = ret.Get(0).(store.StoreChannel) 495 } 496 } 497 498 return r0 499 } 500 501 // GetUnreadCount provides a mock function with given fields: userId 502 func (_m *UserStore) GetUnreadCount(userId string) store.StoreChannel { 503 ret := _m.Called(userId) 504 505 var r0 store.StoreChannel 506 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 507 r0 = rf(userId) 508 } else { 509 if ret.Get(0) != nil { 510 r0 = ret.Get(0).(store.StoreChannel) 511 } 512 } 513 514 return r0 515 } 516 517 // GetUnreadCountForChannel provides a mock function with given fields: userId, channelId 518 func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) store.StoreChannel { 519 ret := _m.Called(userId, channelId) 520 521 var r0 store.StoreChannel 522 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 523 r0 = rf(userId, channelId) 524 } else { 525 if ret.Get(0) != nil { 526 r0 = ret.Get(0).(store.StoreChannel) 527 } 528 } 529 530 return r0 531 } 532 533 // GetUsersBatchForIndexing provides a mock function with given fields: startTime, endTime, limit 534 func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) store.StoreChannel { 535 ret := _m.Called(startTime, endTime, limit) 536 537 var r0 store.StoreChannel 538 if rf, ok := ret.Get(0).(func(int64, int64, int) store.StoreChannel); ok { 539 r0 = rf(startTime, endTime, limit) 540 } else { 541 if ret.Get(0) != nil { 542 r0 = ret.Get(0).(store.StoreChannel) 543 } 544 } 545 546 return r0 547 } 548 549 // InferSystemInstallDate provides a mock function with given fields: 550 func (_m *UserStore) InferSystemInstallDate() store.StoreChannel { 551 ret := _m.Called() 552 553 var r0 store.StoreChannel 554 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 555 r0 = rf() 556 } else { 557 if ret.Get(0) != nil { 558 r0 = ret.Get(0).(store.StoreChannel) 559 } 560 } 561 562 return r0 563 } 564 565 // InvalidatProfileCacheForUser provides a mock function with given fields: userId 566 func (_m *UserStore) InvalidatProfileCacheForUser(userId string) { 567 _m.Called(userId) 568 } 569 570 // InvalidateProfilesInChannelCache provides a mock function with given fields: channelId 571 func (_m *UserStore) InvalidateProfilesInChannelCache(channelId string) { 572 _m.Called(channelId) 573 } 574 575 // InvalidateProfilesInChannelCacheByUser provides a mock function with given fields: userId 576 func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userId string) { 577 _m.Called(userId) 578 } 579 580 // PermanentDelete provides a mock function with given fields: userId 581 func (_m *UserStore) PermanentDelete(userId string) store.StoreChannel { 582 ret := _m.Called(userId) 583 584 var r0 store.StoreChannel 585 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 586 r0 = rf(userId) 587 } else { 588 if ret.Get(0) != nil { 589 r0 = ret.Get(0).(store.StoreChannel) 590 } 591 } 592 593 return r0 594 } 595 596 // ResetLastPictureUpdate provides a mock function with given fields: userId 597 func (_m *UserStore) ResetLastPictureUpdate(userId string) store.StoreChannel { 598 ret := _m.Called(userId) 599 600 var r0 store.StoreChannel 601 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 602 r0 = rf(userId) 603 } else { 604 if ret.Get(0) != nil { 605 r0 = ret.Get(0).(store.StoreChannel) 606 } 607 } 608 609 return r0 610 } 611 612 // Save provides a mock function with given fields: user 613 func (_m *UserStore) Save(user *model.User) store.StoreChannel { 614 ret := _m.Called(user) 615 616 var r0 store.StoreChannel 617 if rf, ok := ret.Get(0).(func(*model.User) store.StoreChannel); ok { 618 r0 = rf(user) 619 } else { 620 if ret.Get(0) != nil { 621 r0 = ret.Get(0).(store.StoreChannel) 622 } 623 } 624 625 return r0 626 } 627 628 // Search provides a mock function with given fields: teamId, term, options 629 func (_m *UserStore) Search(teamId string, term string, options *model.UserSearchOptions) store.StoreChannel { 630 ret := _m.Called(teamId, term, options) 631 632 var r0 store.StoreChannel 633 if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) store.StoreChannel); ok { 634 r0 = rf(teamId, term, options) 635 } else { 636 if ret.Get(0) != nil { 637 r0 = ret.Get(0).(store.StoreChannel) 638 } 639 } 640 641 return r0 642 } 643 644 // SearchInChannel provides a mock function with given fields: channelId, term, options 645 func (_m *UserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) store.StoreChannel { 646 ret := _m.Called(channelId, term, options) 647 648 var r0 store.StoreChannel 649 if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) store.StoreChannel); ok { 650 r0 = rf(channelId, term, options) 651 } else { 652 if ret.Get(0) != nil { 653 r0 = ret.Get(0).(store.StoreChannel) 654 } 655 } 656 657 return r0 658 } 659 660 // SearchNotInChannel provides a mock function with given fields: teamId, channelId, term, options 661 func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) store.StoreChannel { 662 ret := _m.Called(teamId, channelId, term, options) 663 664 var r0 store.StoreChannel 665 if rf, ok := ret.Get(0).(func(string, string, string, *model.UserSearchOptions) store.StoreChannel); ok { 666 r0 = rf(teamId, channelId, term, options) 667 } else { 668 if ret.Get(0) != nil { 669 r0 = ret.Get(0).(store.StoreChannel) 670 } 671 } 672 673 return r0 674 } 675 676 // SearchNotInTeam provides a mock function with given fields: notInTeamId, term, options 677 func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) store.StoreChannel { 678 ret := _m.Called(notInTeamId, term, options) 679 680 var r0 store.StoreChannel 681 if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) store.StoreChannel); ok { 682 r0 = rf(notInTeamId, term, options) 683 } else { 684 if ret.Get(0) != nil { 685 r0 = ret.Get(0).(store.StoreChannel) 686 } 687 } 688 689 return r0 690 } 691 692 // SearchWithoutTeam provides a mock function with given fields: term, options 693 func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) store.StoreChannel { 694 ret := _m.Called(term, options) 695 696 var r0 store.StoreChannel 697 if rf, ok := ret.Get(0).(func(string, *model.UserSearchOptions) store.StoreChannel); ok { 698 r0 = rf(term, options) 699 } else { 700 if ret.Get(0) != nil { 701 r0 = ret.Get(0).(store.StoreChannel) 702 } 703 } 704 705 return r0 706 } 707 708 // Update provides a mock function with given fields: user, allowRoleUpdate 709 func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) store.StoreChannel { 710 ret := _m.Called(user, allowRoleUpdate) 711 712 var r0 store.StoreChannel 713 if rf, ok := ret.Get(0).(func(*model.User, bool) store.StoreChannel); ok { 714 r0 = rf(user, allowRoleUpdate) 715 } else { 716 if ret.Get(0) != nil { 717 r0 = ret.Get(0).(store.StoreChannel) 718 } 719 } 720 721 return r0 722 } 723 724 // UpdateAuthData provides a mock function with given fields: userId, service, authData, email, resetMfa 725 func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) store.StoreChannel { 726 ret := _m.Called(userId, service, authData, email, resetMfa) 727 728 var r0 store.StoreChannel 729 if rf, ok := ret.Get(0).(func(string, string, *string, string, bool) store.StoreChannel); ok { 730 r0 = rf(userId, service, authData, email, resetMfa) 731 } else { 732 if ret.Get(0) != nil { 733 r0 = ret.Get(0).(store.StoreChannel) 734 } 735 } 736 737 return r0 738 } 739 740 // UpdateFailedPasswordAttempts provides a mock function with given fields: userId, attempts 741 func (_m *UserStore) UpdateFailedPasswordAttempts(userId string, attempts int) store.StoreChannel { 742 ret := _m.Called(userId, attempts) 743 744 var r0 store.StoreChannel 745 if rf, ok := ret.Get(0).(func(string, int) store.StoreChannel); ok { 746 r0 = rf(userId, attempts) 747 } else { 748 if ret.Get(0) != nil { 749 r0 = ret.Get(0).(store.StoreChannel) 750 } 751 } 752 753 return r0 754 } 755 756 // UpdateLastPictureUpdate provides a mock function with given fields: userId 757 func (_m *UserStore) UpdateLastPictureUpdate(userId string) store.StoreChannel { 758 ret := _m.Called(userId) 759 760 var r0 store.StoreChannel 761 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 762 r0 = rf(userId) 763 } else { 764 if ret.Get(0) != nil { 765 r0 = ret.Get(0).(store.StoreChannel) 766 } 767 } 768 769 return r0 770 } 771 772 // UpdateMfaActive provides a mock function with given fields: userId, active 773 func (_m *UserStore) UpdateMfaActive(userId string, active bool) store.StoreChannel { 774 ret := _m.Called(userId, active) 775 776 var r0 store.StoreChannel 777 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 778 r0 = rf(userId, active) 779 } else { 780 if ret.Get(0) != nil { 781 r0 = ret.Get(0).(store.StoreChannel) 782 } 783 } 784 785 return r0 786 } 787 788 // UpdateMfaSecret provides a mock function with given fields: userId, secret 789 func (_m *UserStore) UpdateMfaSecret(userId string, secret string) store.StoreChannel { 790 ret := _m.Called(userId, secret) 791 792 var r0 store.StoreChannel 793 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 794 r0 = rf(userId, secret) 795 } else { 796 if ret.Get(0) != nil { 797 r0 = ret.Get(0).(store.StoreChannel) 798 } 799 } 800 801 return r0 802 } 803 804 // UpdatePassword provides a mock function with given fields: userId, newPassword 805 func (_m *UserStore) UpdatePassword(userId string, newPassword string) store.StoreChannel { 806 ret := _m.Called(userId, newPassword) 807 808 var r0 store.StoreChannel 809 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 810 r0 = rf(userId, newPassword) 811 } else { 812 if ret.Get(0) != nil { 813 r0 = ret.Get(0).(store.StoreChannel) 814 } 815 } 816 817 return r0 818 } 819 820 // UpdateUpdateAt provides a mock function with given fields: userId 821 func (_m *UserStore) UpdateUpdateAt(userId string) store.StoreChannel { 822 ret := _m.Called(userId) 823 824 var r0 store.StoreChannel 825 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 826 r0 = rf(userId) 827 } else { 828 if ret.Get(0) != nil { 829 r0 = ret.Get(0).(store.StoreChannel) 830 } 831 } 832 833 return r0 834 } 835 836 // VerifyEmail provides a mock function with given fields: userId, email 837 func (_m *UserStore) VerifyEmail(userId string, email string) store.StoreChannel { 838 ret := _m.Called(userId, email) 839 840 var r0 store.StoreChannel 841 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 842 r0 = rf(userId, email) 843 } else { 844 if ret.Get(0) != nil { 845 r0 = ret.Get(0).(store.StoreChannel) 846 } 847 } 848 849 return r0 850 }