diff options
Diffstat (limited to 'models/org_team_test.go')
-rw-r--r-- | models/org_team_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org_team_test.go b/models/org_team_test.go index 38e36cf82c..9dc26fd814 100644 --- a/models/org_team_test.go +++ b/models/org_team_test.go @@ -286,7 +286,7 @@ func TestGetTeamMembers(t *testing.T) { func TestGetUserTeams(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) test := func(userID int64) { - teams, err := GetUserTeams(userID, ListOptions{}) + teams, _, err := SearchTeam(&SearchTeamOptions{UserID: userID}) assert.NoError(t, err) for _, team := range teams { AssertExistsAndLoadBean(t, &TeamUser{TeamID: team.ID, UID: userID}) |