github.com/levb/mattermost-server@v5.3.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 // 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 // ClearAllCustomRoleAssignments provides a mock function with given fields: 81 func (_m *UserStore) ClearAllCustomRoleAssignments() store.StoreChannel { 82 ret := _m.Called() 83 84 var r0 store.StoreChannel 85 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 86 r0 = rf() 87 } else { 88 if ret.Get(0) != nil { 89 r0 = ret.Get(0).(store.StoreChannel) 90 } 91 } 92 93 return r0 94 } 95 96 // ClearCaches provides a mock function with given fields: 97 func (_m *UserStore) ClearCaches() { 98 _m.Called() 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 // GetAllProfiles provides a mock function with given fields: offset, limit 134 func (_m *UserStore) GetAllProfiles(offset int, limit int) store.StoreChannel { 135 ret := _m.Called(offset, limit) 136 137 var r0 store.StoreChannel 138 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 139 r0 = rf(offset, limit) 140 } else { 141 if ret.Get(0) != nil { 142 r0 = ret.Get(0).(store.StoreChannel) 143 } 144 } 145 146 return r0 147 } 148 149 // GetAllProfilesInChannel provides a mock function with given fields: channelId, allowFromCache 150 func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) store.StoreChannel { 151 ret := _m.Called(channelId, allowFromCache) 152 153 var r0 store.StoreChannel 154 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 155 r0 = rf(channelId, allowFromCache) 156 } else { 157 if ret.Get(0) != nil { 158 r0 = ret.Get(0).(store.StoreChannel) 159 } 160 } 161 162 return r0 163 } 164 165 // GetAllUsingAuthService provides a mock function with given fields: authService 166 func (_m *UserStore) GetAllUsingAuthService(authService string) store.StoreChannel { 167 ret := _m.Called(authService) 168 169 var r0 store.StoreChannel 170 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 171 r0 = rf(authService) 172 } else { 173 if ret.Get(0) != nil { 174 r0 = ret.Get(0).(store.StoreChannel) 175 } 176 } 177 178 return r0 179 } 180 181 // GetByAuth provides a mock function with given fields: authData, authService 182 func (_m *UserStore) GetByAuth(authData *string, authService string) store.StoreChannel { 183 ret := _m.Called(authData, authService) 184 185 var r0 store.StoreChannel 186 if rf, ok := ret.Get(0).(func(*string, string) store.StoreChannel); ok { 187 r0 = rf(authData, 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 // GetByEmail provides a mock function with given fields: email 198 func (_m *UserStore) GetByEmail(email string) store.StoreChannel { 199 ret := _m.Called(email) 200 201 var r0 store.StoreChannel 202 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 203 r0 = rf(email) 204 } else { 205 if ret.Get(0) != nil { 206 r0 = ret.Get(0).(store.StoreChannel) 207 } 208 } 209 210 return r0 211 } 212 213 // GetByUsername provides a mock function with given fields: username 214 func (_m *UserStore) GetByUsername(username string) store.StoreChannel { 215 ret := _m.Called(username) 216 217 var r0 store.StoreChannel 218 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 219 r0 = rf(username) 220 } else { 221 if ret.Get(0) != nil { 222 r0 = ret.Get(0).(store.StoreChannel) 223 } 224 } 225 226 return r0 227 } 228 229 // GetEtagForAllProfiles provides a mock function with given fields: 230 func (_m *UserStore) GetEtagForAllProfiles() store.StoreChannel { 231 ret := _m.Called() 232 233 var r0 store.StoreChannel 234 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 235 r0 = rf() 236 } else { 237 if ret.Get(0) != nil { 238 r0 = ret.Get(0).(store.StoreChannel) 239 } 240 } 241 242 return r0 243 } 244 245 // GetEtagForProfiles provides a mock function with given fields: teamId 246 func (_m *UserStore) GetEtagForProfiles(teamId string) store.StoreChannel { 247 ret := _m.Called(teamId) 248 249 var r0 store.StoreChannel 250 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 251 r0 = rf(teamId) 252 } else { 253 if ret.Get(0) != nil { 254 r0 = ret.Get(0).(store.StoreChannel) 255 } 256 } 257 258 return r0 259 } 260 261 // GetEtagForProfilesNotInTeam provides a mock function with given fields: teamId 262 func (_m *UserStore) GetEtagForProfilesNotInTeam(teamId string) store.StoreChannel { 263 ret := _m.Called(teamId) 264 265 var r0 store.StoreChannel 266 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 267 r0 = rf(teamId) 268 } else { 269 if ret.Get(0) != nil { 270 r0 = ret.Get(0).(store.StoreChannel) 271 } 272 } 273 274 return r0 275 } 276 277 // GetForLogin provides a mock function with given fields: loginId, allowSignInWithUsername, allowSignInWithEmail 278 func (_m *UserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) store.StoreChannel { 279 ret := _m.Called(loginId, allowSignInWithUsername, allowSignInWithEmail) 280 281 var r0 store.StoreChannel 282 if rf, ok := ret.Get(0).(func(string, bool, bool) store.StoreChannel); ok { 283 r0 = rf(loginId, allowSignInWithUsername, allowSignInWithEmail) 284 } else { 285 if ret.Get(0) != nil { 286 r0 = ret.Get(0).(store.StoreChannel) 287 } 288 } 289 290 return r0 291 } 292 293 // GetNewUsersForTeam provides a mock function with given fields: teamId, offset, limit 294 func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int) store.StoreChannel { 295 ret := _m.Called(teamId, offset, limit) 296 297 var r0 store.StoreChannel 298 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 299 r0 = rf(teamId, offset, limit) 300 } else { 301 if ret.Get(0) != nil { 302 r0 = ret.Get(0).(store.StoreChannel) 303 } 304 } 305 306 return r0 307 } 308 309 // GetProfileByIds provides a mock function with given fields: userId, allowFromCache 310 func (_m *UserStore) GetProfileByIds(userId []string, allowFromCache bool) store.StoreChannel { 311 ret := _m.Called(userId, allowFromCache) 312 313 var r0 store.StoreChannel 314 if rf, ok := ret.Get(0).(func([]string, bool) store.StoreChannel); ok { 315 r0 = rf(userId, allowFromCache) 316 } else { 317 if ret.Get(0) != nil { 318 r0 = ret.Get(0).(store.StoreChannel) 319 } 320 } 321 322 return r0 323 } 324 325 // GetProfiles provides a mock function with given fields: teamId, offset, limit 326 func (_m *UserStore) GetProfiles(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 // GetProfilesByUsernames provides a mock function with given fields: usernames, teamId 342 func (_m *UserStore) GetProfilesByUsernames(usernames []string, teamId string) store.StoreChannel { 343 ret := _m.Called(usernames, teamId) 344 345 var r0 store.StoreChannel 346 if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok { 347 r0 = rf(usernames, teamId) 348 } else { 349 if ret.Get(0) != nil { 350 r0 = ret.Get(0).(store.StoreChannel) 351 } 352 } 353 354 return r0 355 } 356 357 // GetProfilesInChannel provides a mock function with given fields: channelId, offset, limit 358 func (_m *UserStore) GetProfilesInChannel(channelId string, offset int, limit int) store.StoreChannel { 359 ret := _m.Called(channelId, offset, limit) 360 361 var r0 store.StoreChannel 362 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 363 r0 = rf(channelId, offset, limit) 364 } else { 365 if ret.Get(0) != nil { 366 r0 = ret.Get(0).(store.StoreChannel) 367 } 368 } 369 370 return r0 371 } 372 373 // GetProfilesInChannelByStatus provides a mock function with given fields: channelId, offset, limit 374 func (_m *UserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) store.StoreChannel { 375 ret := _m.Called(channelId, offset, limit) 376 377 var r0 store.StoreChannel 378 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 379 r0 = rf(channelId, offset, limit) 380 } else { 381 if ret.Get(0) != nil { 382 r0 = ret.Get(0).(store.StoreChannel) 383 } 384 } 385 386 return r0 387 } 388 389 // GetProfilesNotInChannel provides a mock function with given fields: teamId, channelId, offset, limit 390 func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, offset int, limit int) store.StoreChannel { 391 ret := _m.Called(teamId, channelId, offset, limit) 392 393 var r0 store.StoreChannel 394 if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok { 395 r0 = rf(teamId, 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 // GetProfilesNotInTeam provides a mock function with given fields: teamId, offset, limit 406 func (_m *UserStore) GetProfilesNotInTeam(teamId string, offset int, limit int) store.StoreChannel { 407 ret := _m.Called(teamId, 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(teamId, 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 // GetProfilesWithoutTeam provides a mock function with given fields: offset, limit 422 func (_m *UserStore) GetProfilesWithoutTeam(offset int, limit int) store.StoreChannel { 423 ret := _m.Called(offset, limit) 424 425 var r0 store.StoreChannel 426 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 427 r0 = rf(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 // GetRecentlyActiveUsersForTeam provides a mock function with given fields: teamId, offset, limit 438 func (_m *UserStore) GetRecentlyActiveUsersForTeam(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 // GetSystemAdminProfiles provides a mock function with given fields: 454 func (_m *UserStore) GetSystemAdminProfiles() store.StoreChannel { 455 ret := _m.Called() 456 457 var r0 store.StoreChannel 458 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 459 r0 = rf() 460 } else { 461 if ret.Get(0) != nil { 462 r0 = ret.Get(0).(store.StoreChannel) 463 } 464 } 465 466 return r0 467 } 468 469 // GetTotalUsersCount provides a mock function with given fields: 470 func (_m *UserStore) GetTotalUsersCount() store.StoreChannel { 471 ret := _m.Called() 472 473 var r0 store.StoreChannel 474 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 475 r0 = rf() 476 } else { 477 if ret.Get(0) != nil { 478 r0 = ret.Get(0).(store.StoreChannel) 479 } 480 } 481 482 return r0 483 } 484 485 // GetUnreadCount provides a mock function with given fields: userId 486 func (_m *UserStore) GetUnreadCount(userId string) store.StoreChannel { 487 ret := _m.Called(userId) 488 489 var r0 store.StoreChannel 490 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 491 r0 = rf(userId) 492 } else { 493 if ret.Get(0) != nil { 494 r0 = ret.Get(0).(store.StoreChannel) 495 } 496 } 497 498 return r0 499 } 500 501 // GetUnreadCountForChannel provides a mock function with given fields: userId, channelId 502 func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) store.StoreChannel { 503 ret := _m.Called(userId, channelId) 504 505 var r0 store.StoreChannel 506 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 507 r0 = rf(userId, channelId) 508 } else { 509 if ret.Get(0) != nil { 510 r0 = ret.Get(0).(store.StoreChannel) 511 } 512 } 513 514 return r0 515 } 516 517 // InferSystemInstallDate provides a mock function with given fields: 518 func (_m *UserStore) InferSystemInstallDate() store.StoreChannel { 519 ret := _m.Called() 520 521 var r0 store.StoreChannel 522 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 523 r0 = rf() 524 } else { 525 if ret.Get(0) != nil { 526 r0 = ret.Get(0).(store.StoreChannel) 527 } 528 } 529 530 return r0 531 } 532 533 // InvalidatProfileCacheForUser provides a mock function with given fields: userId 534 func (_m *UserStore) InvalidatProfileCacheForUser(userId string) { 535 _m.Called(userId) 536 } 537 538 // InvalidateProfilesInChannelCache provides a mock function with given fields: channelId 539 func (_m *UserStore) InvalidateProfilesInChannelCache(channelId string) { 540 _m.Called(channelId) 541 } 542 543 // InvalidateProfilesInChannelCacheByUser provides a mock function with given fields: userId 544 func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userId string) { 545 _m.Called(userId) 546 } 547 548 // PermanentDelete provides a mock function with given fields: userId 549 func (_m *UserStore) PermanentDelete(userId string) store.StoreChannel { 550 ret := _m.Called(userId) 551 552 var r0 store.StoreChannel 553 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 554 r0 = rf(userId) 555 } else { 556 if ret.Get(0) != nil { 557 r0 = ret.Get(0).(store.StoreChannel) 558 } 559 } 560 561 return r0 562 } 563 564 // Save provides a mock function with given fields: user 565 func (_m *UserStore) Save(user *model.User) store.StoreChannel { 566 ret := _m.Called(user) 567 568 var r0 store.StoreChannel 569 if rf, ok := ret.Get(0).(func(*model.User) store.StoreChannel); ok { 570 r0 = rf(user) 571 } else { 572 if ret.Get(0) != nil { 573 r0 = ret.Get(0).(store.StoreChannel) 574 } 575 } 576 577 return r0 578 } 579 580 // Search provides a mock function with given fields: teamId, term, options 581 func (_m *UserStore) Search(teamId string, term string, options map[string]bool) store.StoreChannel { 582 ret := _m.Called(teamId, term, options) 583 584 var r0 store.StoreChannel 585 if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { 586 r0 = rf(teamId, term, options) 587 } else { 588 if ret.Get(0) != nil { 589 r0 = ret.Get(0).(store.StoreChannel) 590 } 591 } 592 593 return r0 594 } 595 596 // SearchInChannel provides a mock function with given fields: channelId, term, options 597 func (_m *UserStore) SearchInChannel(channelId string, term string, options map[string]bool) store.StoreChannel { 598 ret := _m.Called(channelId, term, options) 599 600 var r0 store.StoreChannel 601 if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { 602 r0 = rf(channelId, term, options) 603 } else { 604 if ret.Get(0) != nil { 605 r0 = ret.Get(0).(store.StoreChannel) 606 } 607 } 608 609 return r0 610 } 611 612 // SearchNotInChannel provides a mock function with given fields: teamId, channelId, term, options 613 func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options map[string]bool) store.StoreChannel { 614 ret := _m.Called(teamId, channelId, term, options) 615 616 var r0 store.StoreChannel 617 if rf, ok := ret.Get(0).(func(string, string, string, map[string]bool) store.StoreChannel); ok { 618 r0 = rf(teamId, channelId, term, options) 619 } else { 620 if ret.Get(0) != nil { 621 r0 = ret.Get(0).(store.StoreChannel) 622 } 623 } 624 625 return r0 626 } 627 628 // SearchNotInTeam provides a mock function with given fields: notInTeamId, term, options 629 func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options map[string]bool) store.StoreChannel { 630 ret := _m.Called(notInTeamId, term, options) 631 632 var r0 store.StoreChannel 633 if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { 634 r0 = rf(notInTeamId, 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 // SearchWithoutTeam provides a mock function with given fields: term, options 645 func (_m *UserStore) SearchWithoutTeam(term string, options map[string]bool) store.StoreChannel { 646 ret := _m.Called(term, options) 647 648 var r0 store.StoreChannel 649 if rf, ok := ret.Get(0).(func(string, map[string]bool) store.StoreChannel); ok { 650 r0 = rf(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 // Update provides a mock function with given fields: user, allowRoleUpdate 661 func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) store.StoreChannel { 662 ret := _m.Called(user, allowRoleUpdate) 663 664 var r0 store.StoreChannel 665 if rf, ok := ret.Get(0).(func(*model.User, bool) store.StoreChannel); ok { 666 r0 = rf(user, allowRoleUpdate) 667 } else { 668 if ret.Get(0) != nil { 669 r0 = ret.Get(0).(store.StoreChannel) 670 } 671 } 672 673 return r0 674 } 675 676 // UpdateAuthData provides a mock function with given fields: userId, service, authData, email, resetMfa 677 func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) store.StoreChannel { 678 ret := _m.Called(userId, service, authData, email, resetMfa) 679 680 var r0 store.StoreChannel 681 if rf, ok := ret.Get(0).(func(string, string, *string, string, bool) store.StoreChannel); ok { 682 r0 = rf(userId, service, authData, email, resetMfa) 683 } else { 684 if ret.Get(0) != nil { 685 r0 = ret.Get(0).(store.StoreChannel) 686 } 687 } 688 689 return r0 690 } 691 692 // UpdateFailedPasswordAttempts provides a mock function with given fields: userId, attempts 693 func (_m *UserStore) UpdateFailedPasswordAttempts(userId string, attempts int) store.StoreChannel { 694 ret := _m.Called(userId, attempts) 695 696 var r0 store.StoreChannel 697 if rf, ok := ret.Get(0).(func(string, int) store.StoreChannel); ok { 698 r0 = rf(userId, attempts) 699 } else { 700 if ret.Get(0) != nil { 701 r0 = ret.Get(0).(store.StoreChannel) 702 } 703 } 704 705 return r0 706 } 707 708 // UpdateLastPictureUpdate provides a mock function with given fields: userId 709 func (_m *UserStore) UpdateLastPictureUpdate(userId string) store.StoreChannel { 710 ret := _m.Called(userId) 711 712 var r0 store.StoreChannel 713 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 714 r0 = rf(userId) 715 } else { 716 if ret.Get(0) != nil { 717 r0 = ret.Get(0).(store.StoreChannel) 718 } 719 } 720 721 return r0 722 } 723 724 // UpdateMfaActive provides a mock function with given fields: userId, active 725 func (_m *UserStore) UpdateMfaActive(userId string, active bool) store.StoreChannel { 726 ret := _m.Called(userId, active) 727 728 var r0 store.StoreChannel 729 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 730 r0 = rf(userId, active) 731 } else { 732 if ret.Get(0) != nil { 733 r0 = ret.Get(0).(store.StoreChannel) 734 } 735 } 736 737 return r0 738 } 739 740 // UpdateMfaSecret provides a mock function with given fields: userId, secret 741 func (_m *UserStore) UpdateMfaSecret(userId string, secret string) store.StoreChannel { 742 ret := _m.Called(userId, secret) 743 744 var r0 store.StoreChannel 745 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 746 r0 = rf(userId, secret) 747 } else { 748 if ret.Get(0) != nil { 749 r0 = ret.Get(0).(store.StoreChannel) 750 } 751 } 752 753 return r0 754 } 755 756 // UpdatePassword provides a mock function with given fields: userId, newPassword 757 func (_m *UserStore) UpdatePassword(userId string, newPassword string) store.StoreChannel { 758 ret := _m.Called(userId, newPassword) 759 760 var r0 store.StoreChannel 761 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 762 r0 = rf(userId, newPassword) 763 } else { 764 if ret.Get(0) != nil { 765 r0 = ret.Get(0).(store.StoreChannel) 766 } 767 } 768 769 return r0 770 } 771 772 // UpdateUpdateAt provides a mock function with given fields: userId 773 func (_m *UserStore) UpdateUpdateAt(userId string) store.StoreChannel { 774 ret := _m.Called(userId) 775 776 var r0 store.StoreChannel 777 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 778 r0 = rf(userId) 779 } else { 780 if ret.Get(0) != nil { 781 r0 = ret.Get(0).(store.StoreChannel) 782 } 783 } 784 785 return r0 786 } 787 788 // VerifyEmail provides a mock function with given fields: userId 789 func (_m *UserStore) VerifyEmail(userId string) store.StoreChannel { 790 ret := _m.Called(userId) 791 792 var r0 store.StoreChannel 793 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 794 r0 = rf(userId) 795 } else { 796 if ret.Get(0) != nil { 797 r0 = ret.Get(0).(store.StoreChannel) 798 } 799 } 800 801 return r0 802 }