From 9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912 Mon Sep 17 00:00:00 2001 From: Jason Mojica Date: Mon, 15 Oct 2018 12:23:46 -0400 Subject: Add SearchChannels plugin api (#9657) --- plugin/plugintest/api.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'plugin/plugintest') diff --git a/plugin/plugintest/api.go b/plugin/plugintest/api.go index 64fc55c31..9040f994e 100644 --- a/plugin/plugintest/api.go +++ b/plugin/plugintest/api.go @@ -1316,6 +1316,31 @@ func (_m *API) SaveConfig(config *model.Config) *model.AppError { return r0 } +// SearchChannels provides a mock function with given fields: teamId, term +func (_m *API) SearchChannels(teamId string, term string) (*model.ChannelList, *model.AppError) { + ret := _m.Called(teamId, term) + + var r0 *model.ChannelList + if rf, ok := ret.Get(0).(func(string, string) *model.ChannelList); ok { + r0 = rf(teamId, term) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*model.ChannelList) + } + } + + var r1 *model.AppError + if rf, ok := ret.Get(1).(func(string, string) *model.AppError); ok { + r1 = rf(teamId, term) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*model.AppError) + } + } + + return r0, r1 +} + // SendEphemeralPost provides a mock function with given fields: userId, post func (_m *API) SendEphemeralPost(userId string, post *model.Post) *model.Post { ret := _m.Called(userId, post) -- cgit v1.2.3-1-g7c22