github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+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 // ClearCaches provides a mock function with given fields: 81 func (_m *UserStore) ClearCaches() { 82 _m.Called() 83 } 84 85 // Get provides a mock function with given fields: id 86 func (_m *UserStore) Get(id string) store.StoreChannel { 87 ret := _m.Called(id) 88 89 var r0 store.StoreChannel 90 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 91 r0 = rf(id) 92 } else { 93 if ret.Get(0) != nil { 94 r0 = ret.Get(0).(store.StoreChannel) 95 } 96 } 97 98 return r0 99 } 100 101 // GetAll provides a mock function with given fields: 102 func (_m *UserStore) GetAll() store.StoreChannel { 103 ret := _m.Called() 104 105 var r0 store.StoreChannel 106 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 107 r0 = rf() 108 } else { 109 if ret.Get(0) != nil { 110 r0 = ret.Get(0).(store.StoreChannel) 111 } 112 } 113 114 return r0 115 } 116 117 // GetAllProfiles provides a mock function with given fields: offset, limit 118 func (_m *UserStore) GetAllProfiles(offset int, limit int) store.StoreChannel { 119 ret := _m.Called(offset, limit) 120 121 var r0 store.StoreChannel 122 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 123 r0 = rf(offset, limit) 124 } else { 125 if ret.Get(0) != nil { 126 r0 = ret.Get(0).(store.StoreChannel) 127 } 128 } 129 130 return r0 131 } 132 133 // GetAllProfilesInChannel provides a mock function with given fields: channelId, allowFromCache 134 func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) store.StoreChannel { 135 ret := _m.Called(channelId, allowFromCache) 136 137 var r0 store.StoreChannel 138 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 139 r0 = rf(channelId, allowFromCache) 140 } else { 141 if ret.Get(0) != nil { 142 r0 = ret.Get(0).(store.StoreChannel) 143 } 144 } 145 146 return r0 147 } 148 149 // GetAllUsingAuthService provides a mock function with given fields: authService 150 func (_m *UserStore) GetAllUsingAuthService(authService string) store.StoreChannel { 151 ret := _m.Called(authService) 152 153 var r0 store.StoreChannel 154 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 155 r0 = rf(authService) 156 } else { 157 if ret.Get(0) != nil { 158 r0 = ret.Get(0).(store.StoreChannel) 159 } 160 } 161 162 return r0 163 } 164 165 // GetByAuth provides a mock function with given fields: authData, authService 166 func (_m *UserStore) GetByAuth(authData *string, authService string) store.StoreChannel { 167 ret := _m.Called(authData, authService) 168 169 var r0 store.StoreChannel 170 if rf, ok := ret.Get(0).(func(*string, string) store.StoreChannel); ok { 171 r0 = rf(authData, 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 // GetByEmail provides a mock function with given fields: email 182 func (_m *UserStore) GetByEmail(email string) store.StoreChannel { 183 ret := _m.Called(email) 184 185 var r0 store.StoreChannel 186 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 187 r0 = rf(email) 188 } else { 189 if ret.Get(0) != nil { 190 r0 = ret.Get(0).(store.StoreChannel) 191 } 192 } 193 194 return r0 195 } 196 197 // GetByUsername provides a mock function with given fields: username 198 func (_m *UserStore) GetByUsername(username string) store.StoreChannel { 199 ret := _m.Called(username) 200 201 var r0 store.StoreChannel 202 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 203 r0 = rf(username) 204 } else { 205 if ret.Get(0) != nil { 206 r0 = ret.Get(0).(store.StoreChannel) 207 } 208 } 209 210 return r0 211 } 212 213 // GetEtagForAllProfiles provides a mock function with given fields: 214 func (_m *UserStore) GetEtagForAllProfiles() store.StoreChannel { 215 ret := _m.Called() 216 217 var r0 store.StoreChannel 218 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 219 r0 = rf() 220 } else { 221 if ret.Get(0) != nil { 222 r0 = ret.Get(0).(store.StoreChannel) 223 } 224 } 225 226 return r0 227 } 228 229 // GetEtagForProfiles provides a mock function with given fields: teamId 230 func (_m *UserStore) GetEtagForProfiles(teamId string) store.StoreChannel { 231 ret := _m.Called(teamId) 232 233 var r0 store.StoreChannel 234 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 235 r0 = rf(teamId) 236 } else { 237 if ret.Get(0) != nil { 238 r0 = ret.Get(0).(store.StoreChannel) 239 } 240 } 241 242 return r0 243 } 244 245 // GetEtagForProfilesNotInTeam provides a mock function with given fields: teamId 246 func (_m *UserStore) GetEtagForProfilesNotInTeam(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 // GetForLogin provides a mock function with given fields: loginId, allowSignInWithUsername, allowSignInWithEmail 262 func (_m *UserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) store.StoreChannel { 263 ret := _m.Called(loginId, allowSignInWithUsername, allowSignInWithEmail) 264 265 var r0 store.StoreChannel 266 if rf, ok := ret.Get(0).(func(string, bool, bool) store.StoreChannel); ok { 267 r0 = rf(loginId, allowSignInWithUsername, allowSignInWithEmail) 268 } else { 269 if ret.Get(0) != nil { 270 r0 = ret.Get(0).(store.StoreChannel) 271 } 272 } 273 274 return r0 275 } 276 277 // GetNewUsersForTeam provides a mock function with given fields: teamId, offset, limit 278 func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int) store.StoreChannel { 279 ret := _m.Called(teamId, offset, limit) 280 281 var r0 store.StoreChannel 282 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 283 r0 = rf(teamId, offset, limit) 284 } else { 285 if ret.Get(0) != nil { 286 r0 = ret.Get(0).(store.StoreChannel) 287 } 288 } 289 290 return r0 291 } 292 293 // GetProfileByIds provides a mock function with given fields: userId, allowFromCache 294 func (_m *UserStore) GetProfileByIds(userId []string, allowFromCache bool) store.StoreChannel { 295 ret := _m.Called(userId, allowFromCache) 296 297 var r0 store.StoreChannel 298 if rf, ok := ret.Get(0).(func([]string, bool) store.StoreChannel); ok { 299 r0 = rf(userId, allowFromCache) 300 } else { 301 if ret.Get(0) != nil { 302 r0 = ret.Get(0).(store.StoreChannel) 303 } 304 } 305 306 return r0 307 } 308 309 // GetProfiles provides a mock function with given fields: teamId, offset, limit 310 func (_m *UserStore) GetProfiles(teamId string, offset int, limit int) store.StoreChannel { 311 ret := _m.Called(teamId, offset, limit) 312 313 var r0 store.StoreChannel 314 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 315 r0 = rf(teamId, offset, limit) 316 } else { 317 if ret.Get(0) != nil { 318 r0 = ret.Get(0).(store.StoreChannel) 319 } 320 } 321 322 return r0 323 } 324 325 // GetProfilesByUsernames provides a mock function with given fields: usernames, teamId 326 func (_m *UserStore) GetProfilesByUsernames(usernames []string, teamId string) store.StoreChannel { 327 ret := _m.Called(usernames, teamId) 328 329 var r0 store.StoreChannel 330 if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok { 331 r0 = rf(usernames, teamId) 332 } else { 333 if ret.Get(0) != nil { 334 r0 = ret.Get(0).(store.StoreChannel) 335 } 336 } 337 338 return r0 339 } 340 341 // GetProfilesInChannel provides a mock function with given fields: channelId, offset, limit 342 func (_m *UserStore) GetProfilesInChannel(channelId string, offset int, limit int) store.StoreChannel { 343 ret := _m.Called(channelId, offset, limit) 344 345 var r0 store.StoreChannel 346 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 347 r0 = rf(channelId, offset, limit) 348 } else { 349 if ret.Get(0) != nil { 350 r0 = ret.Get(0).(store.StoreChannel) 351 } 352 } 353 354 return r0 355 } 356 357 // GetProfilesInChannelByStatus provides a mock function with given fields: channelId, offset, limit 358 func (_m *UserStore) GetProfilesInChannelByStatus(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 // GetProfilesNotInChannel provides a mock function with given fields: teamId, channelId, offset, limit 374 func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, offset int, limit int) store.StoreChannel { 375 ret := _m.Called(teamId, channelId, offset, limit) 376 377 var r0 store.StoreChannel 378 if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok { 379 r0 = rf(teamId, 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 // GetProfilesNotInTeam provides a mock function with given fields: teamId, offset, limit 390 func (_m *UserStore) GetProfilesNotInTeam(teamId string, offset int, limit int) store.StoreChannel { 391 ret := _m.Called(teamId, 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(teamId, 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 // GetProfilesWithoutTeam provides a mock function with given fields: offset, limit 406 func (_m *UserStore) GetProfilesWithoutTeam(offset int, limit int) store.StoreChannel { 407 ret := _m.Called(offset, limit) 408 409 var r0 store.StoreChannel 410 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 411 r0 = rf(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 // GetRecentlyActiveUsersForTeam provides a mock function with given fields: teamId, offset, limit 422 func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int) store.StoreChannel { 423 ret := _m.Called(teamId, offset, limit) 424 425 var r0 store.StoreChannel 426 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 427 r0 = rf(teamId, 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 // GetSystemAdminProfiles provides a mock function with given fields: 438 func (_m *UserStore) GetSystemAdminProfiles() store.StoreChannel { 439 ret := _m.Called() 440 441 var r0 store.StoreChannel 442 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 443 r0 = rf() 444 } else { 445 if ret.Get(0) != nil { 446 r0 = ret.Get(0).(store.StoreChannel) 447 } 448 } 449 450 return r0 451 } 452 453 // GetTotalUsersCount provides a mock function with given fields: 454 func (_m *UserStore) GetTotalUsersCount() 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 // GetUnreadCount provides a mock function with given fields: userId 470 func (_m *UserStore) GetUnreadCount(userId string) store.StoreChannel { 471 ret := _m.Called(userId) 472 473 var r0 store.StoreChannel 474 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 475 r0 = rf(userId) 476 } else { 477 if ret.Get(0) != nil { 478 r0 = ret.Get(0).(store.StoreChannel) 479 } 480 } 481 482 return r0 483 } 484 485 // GetUnreadCountForChannel provides a mock function with given fields: userId, channelId 486 func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) store.StoreChannel { 487 ret := _m.Called(userId, channelId) 488 489 var r0 store.StoreChannel 490 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 491 r0 = rf(userId, channelId) 492 } else { 493 if ret.Get(0) != nil { 494 r0 = ret.Get(0).(store.StoreChannel) 495 } 496 } 497 498 return r0 499 } 500 501 // InvalidatProfileCacheForUser provides a mock function with given fields: userId 502 func (_m *UserStore) InvalidatProfileCacheForUser(userId string) { 503 _m.Called(userId) 504 } 505 506 // InvalidateProfilesInChannelCache provides a mock function with given fields: channelId 507 func (_m *UserStore) InvalidateProfilesInChannelCache(channelId string) { 508 _m.Called(channelId) 509 } 510 511 // InvalidateProfilesInChannelCacheByUser provides a mock function with given fields: userId 512 func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userId string) { 513 _m.Called(userId) 514 } 515 516 // PermanentDelete provides a mock function with given fields: userId 517 func (_m *UserStore) PermanentDelete(userId string) store.StoreChannel { 518 ret := _m.Called(userId) 519 520 var r0 store.StoreChannel 521 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 522 r0 = rf(userId) 523 } else { 524 if ret.Get(0) != nil { 525 r0 = ret.Get(0).(store.StoreChannel) 526 } 527 } 528 529 return r0 530 } 531 532 // Save provides a mock function with given fields: user 533 func (_m *UserStore) Save(user *model.User) store.StoreChannel { 534 ret := _m.Called(user) 535 536 var r0 store.StoreChannel 537 if rf, ok := ret.Get(0).(func(*model.User) store.StoreChannel); ok { 538 r0 = rf(user) 539 } else { 540 if ret.Get(0) != nil { 541 r0 = ret.Get(0).(store.StoreChannel) 542 } 543 } 544 545 return r0 546 } 547 548 // Search provides a mock function with given fields: teamId, term, options 549 func (_m *UserStore) Search(teamId string, term string, options map[string]bool) store.StoreChannel { 550 ret := _m.Called(teamId, term, options) 551 552 var r0 store.StoreChannel 553 if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { 554 r0 = rf(teamId, term, options) 555 } else { 556 if ret.Get(0) != nil { 557 r0 = ret.Get(0).(store.StoreChannel) 558 } 559 } 560 561 return r0 562 } 563 564 // SearchInChannel provides a mock function with given fields: channelId, term, options 565 func (_m *UserStore) SearchInChannel(channelId string, term string, options map[string]bool) store.StoreChannel { 566 ret := _m.Called(channelId, term, options) 567 568 var r0 store.StoreChannel 569 if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { 570 r0 = rf(channelId, term, options) 571 } else { 572 if ret.Get(0) != nil { 573 r0 = ret.Get(0).(store.StoreChannel) 574 } 575 } 576 577 return r0 578 } 579 580 // SearchNotInChannel provides a mock function with given fields: teamId, channelId, term, options 581 func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options map[string]bool) store.StoreChannel { 582 ret := _m.Called(teamId, channelId, term, options) 583 584 var r0 store.StoreChannel 585 if rf, ok := ret.Get(0).(func(string, string, string, map[string]bool) store.StoreChannel); ok { 586 r0 = rf(teamId, channelId, 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 // SearchNotInTeam provides a mock function with given fields: notInTeamId, term, options 597 func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options map[string]bool) store.StoreChannel { 598 ret := _m.Called(notInTeamId, 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(notInTeamId, 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 // SearchWithoutTeam provides a mock function with given fields: term, options 613 func (_m *UserStore) SearchWithoutTeam(term string, options map[string]bool) store.StoreChannel { 614 ret := _m.Called(term, options) 615 616 var r0 store.StoreChannel 617 if rf, ok := ret.Get(0).(func(string, map[string]bool) store.StoreChannel); ok { 618 r0 = rf(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 // Update provides a mock function with given fields: user, allowRoleUpdate 629 func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) store.StoreChannel { 630 ret := _m.Called(user, allowRoleUpdate) 631 632 var r0 store.StoreChannel 633 if rf, ok := ret.Get(0).(func(*model.User, bool) store.StoreChannel); ok { 634 r0 = rf(user, allowRoleUpdate) 635 } else { 636 if ret.Get(0) != nil { 637 r0 = ret.Get(0).(store.StoreChannel) 638 } 639 } 640 641 return r0 642 } 643 644 // UpdateAuthData provides a mock function with given fields: userId, service, authData, email, resetMfa 645 func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) store.StoreChannel { 646 ret := _m.Called(userId, service, authData, email, resetMfa) 647 648 var r0 store.StoreChannel 649 if rf, ok := ret.Get(0).(func(string, string, *string, string, bool) store.StoreChannel); ok { 650 r0 = rf(userId, service, authData, email, resetMfa) 651 } else { 652 if ret.Get(0) != nil { 653 r0 = ret.Get(0).(store.StoreChannel) 654 } 655 } 656 657 return r0 658 } 659 660 // UpdateFailedPasswordAttempts provides a mock function with given fields: userId, attempts 661 func (_m *UserStore) UpdateFailedPasswordAttempts(userId string, attempts int) store.StoreChannel { 662 ret := _m.Called(userId, attempts) 663 664 var r0 store.StoreChannel 665 if rf, ok := ret.Get(0).(func(string, int) store.StoreChannel); ok { 666 r0 = rf(userId, attempts) 667 } else { 668 if ret.Get(0) != nil { 669 r0 = ret.Get(0).(store.StoreChannel) 670 } 671 } 672 673 return r0 674 } 675 676 // UpdateLastPictureUpdate provides a mock function with given fields: userId 677 func (_m *UserStore) UpdateLastPictureUpdate(userId string) store.StoreChannel { 678 ret := _m.Called(userId) 679 680 var r0 store.StoreChannel 681 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 682 r0 = rf(userId) 683 } else { 684 if ret.Get(0) != nil { 685 r0 = ret.Get(0).(store.StoreChannel) 686 } 687 } 688 689 return r0 690 } 691 692 // UpdateMfaActive provides a mock function with given fields: userId, active 693 func (_m *UserStore) UpdateMfaActive(userId string, active bool) store.StoreChannel { 694 ret := _m.Called(userId, active) 695 696 var r0 store.StoreChannel 697 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 698 r0 = rf(userId, active) 699 } else { 700 if ret.Get(0) != nil { 701 r0 = ret.Get(0).(store.StoreChannel) 702 } 703 } 704 705 return r0 706 } 707 708 // UpdateMfaSecret provides a mock function with given fields: userId, secret 709 func (_m *UserStore) UpdateMfaSecret(userId string, secret string) store.StoreChannel { 710 ret := _m.Called(userId, secret) 711 712 var r0 store.StoreChannel 713 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 714 r0 = rf(userId, secret) 715 } else { 716 if ret.Get(0) != nil { 717 r0 = ret.Get(0).(store.StoreChannel) 718 } 719 } 720 721 return r0 722 } 723 724 // UpdatePassword provides a mock function with given fields: userId, newPassword 725 func (_m *UserStore) UpdatePassword(userId string, newPassword string) store.StoreChannel { 726 ret := _m.Called(userId, newPassword) 727 728 var r0 store.StoreChannel 729 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 730 r0 = rf(userId, newPassword) 731 } else { 732 if ret.Get(0) != nil { 733 r0 = ret.Get(0).(store.StoreChannel) 734 } 735 } 736 737 return r0 738 } 739 740 // UpdateUpdateAt provides a mock function with given fields: userId 741 func (_m *UserStore) UpdateUpdateAt(userId string) store.StoreChannel { 742 ret := _m.Called(userId) 743 744 var r0 store.StoreChannel 745 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 746 r0 = rf(userId) 747 } else { 748 if ret.Get(0) != nil { 749 r0 = ret.Get(0).(store.StoreChannel) 750 } 751 } 752 753 return r0 754 } 755 756 // VerifyEmail provides a mock function with given fields: userId 757 func (_m *UserStore) VerifyEmail(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 }