mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 15:37:35 +00:00
test POST /{owner}/{repo}/comments/{id}
Conflicts: tests/integration/issue_test.go
This commit is contained in:
parent
236c5e172c
commit
9c14e4f103
|
@ -245,6 +245,8 @@ func TestIssueCommentUpdate(t *testing.T) {
|
||||||
"content": modifiedContent,
|
"content": modifiedContent,
|
||||||
})
|
})
|
||||||
session.MakeRequest(t, req, http.StatusNotFound)
|
session.MakeRequest(t, req, http.StatusNotFound)
|
||||||
|
commentIdentical := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: commentID})
|
||||||
|
assert.Equal(t, comment1, commentIdentical.Content)
|
||||||
|
|
||||||
req = NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/comments/%d", "user2", "repo1", commentID), map[string]string{
|
req = NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/comments/%d", "user2", "repo1", commentID), map[string]string{
|
||||||
"_csrf": GetCSRF(t, session, issueURL),
|
"_csrf": GetCSRF(t, session, issueURL),
|
||||||
|
|
Loading…
Reference in a new issue