summaryrefslogtreecommitdiffstats
path: root/plugin/plugintest
diff options
context:
space:
mode:
authorDaniel Hodan <daniel.hodan@czertbytes.de>2018-10-15 18:27:45 +0200
committerChristopher Speller <crspeller@gmail.com>2018-10-15 09:27:45 -0700
commita35a9b9b2d9720a3753c96a4a3a36d437e518140 (patch)
treeaf227ccb050f73335a901b16f85084ff1b15286b /plugin/plugintest
parent3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390 (diff)
downloadchat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.gz
chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.bz2
chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.zip
add GetChannelsForTeamForUser to plugin api (#9646)
Diffstat (limited to 'plugin/plugintest')
-rw-r--r--plugin/plugintest/api.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugin/plugintest/api.go b/plugin/plugintest/api.go
index b915a6105..a65b3a5d7 100644
--- a/plugin/plugintest/api.go
+++ b/plugin/plugintest/api.go
@@ -458,6 +458,31 @@ func (_m *API) GetChannelMembers(channelId string, page int, perPage int) (*mode
return r0, r1
}
+// GetChannelsForTeamForUser provides a mock function with given fields: teamId, userId, includeDeleted
+func (_m *API) GetChannelsForTeamForUser(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError) {
+ ret := _m.Called(teamId, userId, includeDeleted)
+
+ var r0 *model.ChannelList
+ if rf, ok := ret.Get(0).(func(string, string, bool) *model.ChannelList); ok {
+ r0 = rf(teamId, userId, includeDeleted)
+ } 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, bool) *model.AppError); ok {
+ r1 = rf(teamId, userId, includeDeleted)
+ } 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()