From 8de9a61f7ffd570312fd05c5e6986f9d21ab0063 Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Thu, 4 Oct 2018 01:37:54 +0530 Subject: Add GetChannelMembers method to plugin API (#9525) Signed-off-by: Akash Srivastava --- 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 64189ee23..862662cf8 100644 --- a/plugin/plugintest/api.go +++ b/plugin/plugintest/api.go @@ -433,6 +433,31 @@ func (_m *API) GetChannelMember(channelId string, userId string) (*model.Channel return r0, r1 } +// GetChannelMembers provides a mock function with given fields: channelId, page, perPage +func (_m *API) GetChannelMembers(channelId string, page int, perPage int) (*model.ChannelMembers, *model.AppError) { + ret := _m.Called(channelId, page, perPage) + + var r0 *model.ChannelMembers + if rf, ok := ret.Get(0).(func(string, int, int) *model.ChannelMembers); ok { + r0 = rf(channelId, page, perPage) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*model.ChannelMembers) + } + } + + var r1 *model.AppError + if rf, ok := ret.Get(1).(func(string, int, int) *model.AppError); ok { + r1 = rf(channelId, page, perPage) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*model.AppError) + } + } + + return r0, r1 +} + // GetConfig provides a mock function with given fields: func (_m *API) GetConfig() *model.Config { ret := _m.Called() -- cgit v1.2.3-1-g7c22