summaryrefslogtreecommitdiffstats
path: root/plugin/plugintest
diff options
context:
space:
mode:
authorCharles Kenney <Charlesc.kenney@gmail.com>2018-10-15 17:09:30 -0400
committerChristopher Speller <crspeller@gmail.com>2018-10-15 14:09:30 -0700
commit1cdf717446d79191701949a97557f801681bc278 (patch)
tree29825848ab5bded4baf307df238bc71e26cf31e7 /plugin/plugintest
parentb843774de841f71e346bcd9e30b86fecddec3318 (diff)
downloadchat-1cdf717446d79191701949a97557f801681bc278.tar.gz
chat-1cdf717446d79191701949a97557f801681bc278.tar.bz2
chat-1cdf717446d79191701949a97557f801681bc278.zip
add GetEmojiByName method to plugin API (#9641)
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 0e9402931..d17c9dc5c 100644
--- a/plugin/plugintest/api.go
+++ b/plugin/plugintest/api.go
@@ -524,6 +524,31 @@ func (_m *API) GetDirectChannel(userId1 string, userId2 string) (*model.Channel,
return r0, r1
}
+// GetEmojiByName provides a mock function with given fields: name
+func (_m *API) GetEmojiByName(name string) (*model.Emoji, *model.AppError) {
+ ret := _m.Called(name)
+
+ var r0 *model.Emoji
+ if rf, ok := ret.Get(0).(func(string) *model.Emoji); ok {
+ r0 = rf(name)
+ } 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(name)
+ } 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)