summaryrefslogtreecommitdiffstats
path: root/plugin/plugintest
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-08-28 11:27:18 -0500
committerGitHub <noreply@github.com>2017-08-28 11:27:18 -0500
commit6215c9159acb85033616d2937edf3d87ef7ca79b (patch)
tree54e53392804bda3a30aa9615fef0cd01ca189152 /plugin/plugintest
parent510b1a18f5282981a70503c0cde474e121c9e651 (diff)
downloadchat-6215c9159acb85033616d2937edf3d87ef7ca79b.tar.gz
chat-6215c9159acb85033616d2937edf3d87ef7ca79b.tar.bz2
chat-6215c9159acb85033616d2937edf3d87ef7ca79b.zip
add plugin http handler (#7289)
Diffstat (limited to 'plugin/plugintest')
-rw-r--r--plugin/plugintest/hooks.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/plugintest/hooks.go b/plugin/plugintest/hooks.go
index 057c705c9..4cac515b4 100644
--- a/plugin/plugintest/hooks.go
+++ b/plugin/plugintest/hooks.go
@@ -1,6 +1,8 @@
package plugintest
import (
+ "net/http"
+
"github.com/stretchr/testify/mock"
"github.com/mattermost/platform/plugin"
@@ -19,3 +21,7 @@ func (m *Hooks) OnActivate(api plugin.API) error {
func (m *Hooks) OnDeactivate() error {
return m.Called().Error(0)
}
+
+func (m *Hooks) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+ m.Called(w, r)
+}