diff options
author | Joram Wilander <jwawilander@gmail.com> | 2018-07-16 15:49:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 15:49:26 -0400 |
commit | 275731578e72d2c6e12cfb2fc315d3446474faec (patch) | |
tree | 25df7525ed2244c7dec5be44495b45ffc0ae1023 /app/apptestlib.go | |
parent | 88eef609ab712097ff2b13a2ca45c31ea6fa7df2 (diff) | |
download | chat-275731578e72d2c6e12cfb2fc315d3446474faec.tar.gz chat-275731578e72d2c6e12cfb2fc315d3446474faec.tar.bz2 chat-275731578e72d2c6e12cfb2fc315d3446474faec.zip |
MM-10254 Add plugin APIs for getting/updating user statuses (#9101)
* Add plugin APIs for getting/updating user statuses
* Add and update tests
* Updates per feedback
Diffstat (limited to 'app/apptestlib.go')
-rw-r--r-- | app/apptestlib.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/apptestlib.go b/app/apptestlib.go index 12b01c5e5..48783f49c 100644 --- a/app/apptestlib.go +++ b/app/apptestlib.go @@ -463,6 +463,14 @@ func (me *TestHelper) SetupChannelScheme() *model.Scheme { } } +func (me *TestHelper) SetupPluginAPI() *PluginAPI { + manifest := &model.Manifest{ + Id: "pluginid", + } + + return NewPluginAPI(me.App, manifest) +} + type FakeClusterInterface struct { clusterMessageHandler einterfaces.ClusterMessageHandler } |