mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 15:07:20 +00:00
Only show part of members on orgnization dashboard and add paging for orgnization members page (#9092)
* Only show part of members on orgnization dashboard and add paging for orgnization members page * fix test * fix typo
This commit is contained in:
@ -395,7 +395,7 @@ func TestGetOrgUsersByUserID(t *testing.T) {
|
||||
func TestGetOrgUsersByOrgID(t *testing.T) {
|
||||
assert.NoError(t, PrepareTestDatabase())
|
||||
|
||||
orgUsers, err := GetOrgUsersByOrgID(3)
|
||||
orgUsers, err := GetOrgUsersByOrgID(3, false, 0, 0)
|
||||
assert.NoError(t, err)
|
||||
if assert.Len(t, orgUsers, 3) {
|
||||
assert.Equal(t, OrgUser{
|
||||
@ -410,7 +410,7 @@ func TestGetOrgUsersByOrgID(t *testing.T) {
|
||||
IsPublic: false}, *orgUsers[1])
|
||||
}
|
||||
|
||||
orgUsers, err = GetOrgUsersByOrgID(NonexistentID)
|
||||
orgUsers, err = GetOrgUsersByOrgID(NonexistentID, false, 0, 0)
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, orgUsers, 0)
|
||||
}
|
||||
|
Reference in New Issue
Block a user