Move setting plugin helpers to a seperate function to avoid breaking changes. (#10809)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
6ce3cc6921
Коммит
66cb36f5dc
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user