Move setting plugin helpers to a seperate function to avoid breaking changes. (#10809)

Этот коммит содержится в:
Christopher Speller
2019-05-08 11:54:52 -07:00
коммит произвёл Harrison Healey
родитель 6ce3cc6921
Коммит 66cb36f5dc
3 изменённых файлов: 15 добавлений и 6 удалений

Просмотреть файл

@@ -46,7 +46,8 @@ func Example() {
defer helpers.AssertExpectations(t)
p := &HelloUserPlugin{}
p.SetAPI(api, helpers)
p.SetAPI(api)
p.SetHelpers(helpers)
w := httptest.NewRecorder()
r := httptest.NewRequest("GET", "/", nil)