summaryrefslogtreecommitdiffstats
path: root/plugin/plugintest
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-10-18 18:11:15 +0200
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-10-18 18:11:15 +0200
commitd3460276916aa326051d410e7aeae0ce7fd0c14f (patch)
tree82de7c480c8081842a9cc18d11368d8f95752842 /plugin/plugintest
parent0d87486e996a9a83f6494dab6e4d4c4c853cb6d6 (diff)
downloadchat-d3460276916aa326051d410e7aeae0ce7fd0c14f.tar.gz
chat-d3460276916aa326051d410e7aeae0ce7fd0c14f.tar.bz2
chat-d3460276916aa326051d410e7aeae0ce7fd0c14f.zip
Add GetPostsAfter() to plugin API (#9650)
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 4ef879bad..00328d155 100644
--- a/plugin/plugintest/api.go
+++ b/plugin/plugintest/api.go
@@ -697,6 +697,31 @@ func (_m *API) GetPostThread(postId string) (*model.PostList, *model.AppError) {
return r0, r1
}
+// GetPostsAfter provides a mock function with given fields: channelId, postId, page, perPage
+func (_m *API) GetPostsAfter(channelId string, postId string, page int, perPage int) (*model.PostList, *model.AppError) {
+ ret := _m.Called(channelId, postId, page, perPage)
+
+ var r0 *model.PostList
+ if rf, ok := ret.Get(0).(func(string, string, int, int) *model.PostList); ok {
+ r0 = rf(channelId, postId, page, perPage)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*model.PostList)
+ }
+ }
+
+ var r1 *model.AppError
+ if rf, ok := ret.Get(1).(func(string, string, int, int) *model.AppError); ok {
+ r1 = rf(channelId, postId, page, perPage)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*model.AppError)
+ }
+ }
+
+ return r0, r1
+}
+
// GetPostsBefore provides a mock function with given fields: channelId, postId, page, perPage
func (_m *API) GetPostsBefore(channelId string, postId string, page int, perPage int) (*model.PostList, *model.AppError) {
ret := _m.Called(channelId, postId, page, perPage)