summaryrefslogtreecommitdiffstats
path: root/plugin/plugintest/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/plugintest/hooks.go')
-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)
+}