forked from forgejo/forgejo
Unit tests for wiki routers (#3022)
This commit is contained in:
parent
82e8486f13
commit
91f3d77ceb
9 changed files with 285 additions and 69 deletions
|
@ -19,8 +19,8 @@ func TestIssues(t *testing.T) {
|
|||
setting.UI.IssuePagingNum = 1
|
||||
assert.NoError(t, models.LoadFixtures())
|
||||
|
||||
ctx := test.MockContext(t)
|
||||
ctx.User = models.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
|
||||
ctx := test.MockContext(t, "issues")
|
||||
test.LoadUser(t, ctx, 2)
|
||||
ctx.SetParams(":type", "issues")
|
||||
ctx.Req.Form.Set("state", "closed")
|
||||
Issues(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue