MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
66fc096768
Коммит
17523fa5d9
@@ -422,7 +422,7 @@ func TestCheckCSRFToken(t *testing.T) {
|
||||
|
||||
c := &Context{
|
||||
App: th.App,
|
||||
Log: th.App.Log,
|
||||
Log: th.App.Log(),
|
||||
}
|
||||
r, _ := http.NewRequest(http.MethodPost, "", nil)
|
||||
r.Header.Set(model.HEADER_REQUESTED_WITH, model.HEADER_REQUESTED_WITH_XML)
|
||||
@@ -457,7 +457,7 @@ func TestCheckCSRFToken(t *testing.T) {
|
||||
|
||||
c := &Context{
|
||||
App: th.App,
|
||||
Log: th.App.Log,
|
||||
Log: th.App.Log(),
|
||||
}
|
||||
r, _ := http.NewRequest(http.MethodPost, "", nil)
|
||||
r.Header.Set(model.HEADER_REQUESTED_WITH, model.HEADER_REQUESTED_WITH_XML)
|
||||
|
||||
Ссылка в новой задаче
Block a user