diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-09-11 22:45:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 22:45:31 +0200 |
commit | e32581aef3253bb0691d6fd678fbf01e86f2c10c (patch) | |
tree | 895aff7c6cc2e43a5209bb3c7b19384f13c5b105 /store/storetest/mocks/ChannelStore.go | |
parent | d585f9d9a3bd7c272a02e1d3d52990bc6ecb37a3 (diff) | |
download | chat-e32581aef3253bb0691d6fd678fbf01e86f2c10c.tar.gz chat-e32581aef3253bb0691d6fd678fbf01e86f2c10c.tar.bz2 chat-e32581aef3253bb0691d6fd678fbf01e86f2c10c.zip |
MM-11725: Add specific autocomplete endpoint for search autocomplete (#9337)
Diffstat (limited to 'store/storetest/mocks/ChannelStore.go')
-rw-r--r-- | store/storetest/mocks/ChannelStore.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/store/storetest/mocks/ChannelStore.go b/store/storetest/mocks/ChannelStore.go index 747a844ec..63f6bc6a9 100644 --- a/store/storetest/mocks/ChannelStore.go +++ b/store/storetest/mocks/ChannelStore.go @@ -61,6 +61,22 @@ func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string, includeDe return r0 } +// AutocompleteInTeamForSearch provides a mock function with given fields: teamId, userId, term, includeDeleted +func (_m *ChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) store.StoreChannel { + ret := _m.Called(teamId, userId, term, includeDeleted) + + var r0 store.StoreChannel + if rf, ok := ret.Get(0).(func(string, string, string, bool) store.StoreChannel); ok { + r0 = rf(teamId, userId, term, includeDeleted) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(store.StoreChannel) + } + } + + return r0 +} + // ClearAllCustomRoleAssignments provides a mock function with given fields: func (_m *ChannelStore) ClearAllCustomRoleAssignments() store.StoreChannel { ret := _m.Called() |