diff options
author | Jason Mojica <jason@jasonmojica.net> | 2018-10-25 13:54:10 +0000 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-10-25 09:54:10 -0400 |
commit | a9ee2e01c5584396000b0368fe8366d60ab29534 (patch) | |
tree | 679de0fef10d6910160f9fbebdd0b2587872c366 /plugin/plugintest | |
parent | 54b7a29581c8d93c876a2a5840b05410f2a35fb9 (diff) | |
download | chat-a9ee2e01c5584396000b0368fe8366d60ab29534.tar.gz chat-a9ee2e01c5584396000b0368fe8366d60ab29534.tar.bz2 chat-a9ee2e01c5584396000b0368fe8366d60ab29534.zip |
GH-9617 Add plugin API for GetEmoji method (#9656)
* Add GetEmoji plugin api
* Add server version
Diffstat (limited to 'plugin/plugintest')
-rw-r--r-- | plugin/plugintest/api.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugin/plugintest/api.go b/plugin/plugintest/api.go index 4e94e17af..81462e58d 100644 --- a/plugin/plugintest/api.go +++ b/plugin/plugintest/api.go @@ -581,6 +581,31 @@ func (_m *API) GetEmojiImage(emojiId string) ([]byte, string, *model.AppError) { return r0, r1, r2 } +// GetEmoji provides a mock function with given fields: emojiId +func (_m *API) GetEmoji(emojiId string) (*model.Emoji, *model.AppError) { + ret := _m.Called(emojiId) + + var r0 *model.Emoji + if rf, ok := ret.Get(0).(func(string) *model.Emoji); ok { + r0 = rf(emojiId) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*model.Emoji) + } + } + + var r1 *model.AppError + if rf, ok := ret.Get(1).(func(string) *model.AppError); ok { + r1 = rf(emojiId) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*model.AppError) + } + } + + return r0, r1 +} + // GetFileInfo provides a mock function with given fields: fileId func (_m *API) GetFileInfo(fileId string) (*model.FileInfo, *model.AppError) { ret := _m.Called(fileId) |