summaryrefslogtreecommitdiffstats
path: root/api/team_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-19 09:00:13 -0500
committerGitHub <noreply@github.com>2017-01-19 09:00:13 -0500
commitd3a285e64d051aa8d5c4c9854597dfbcce107675 (patch)
treee16ca3d52b6347a754e506aa8cac7457c62d3639 /api/team_test.go
parent61b7226533568f3261fc233538ce998bb71a5345 (diff)
downloadchat-d3a285e64d051aa8d5c4c9854597dfbcce107675.tar.gz
chat-d3a285e64d051aa8d5c4c9854597dfbcce107675.tar.bz2
chat-d3a285e64d051aa8d5c4c9854597dfbcce107675.zip
Migrate functions to app package (#5106)
* Refactor and move session logic into app package * Refactor email functions into the app package * Refactor password update into app package * Migrate user functions to app package * Move team functions into app package * Migrate channel functions into app package * Pass SiteURL through to app functions * Update based on feedback
Diffstat (limited to 'api/team_test.go')
-rw-r--r--api/team_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/team_test.go b/api/team_test.go
index 641f7b98d..fdc7e334b 100644
--- a/api/team_test.go
+++ b/api/team_test.go
@@ -191,7 +191,7 @@ func TestGetAllTeamListings(t *testing.T) {
}
}
- UpdateUserRoles(user, model.ROLE_SYSTEM_ADMIN.Id)
+ app.UpdateUserRoles(user.Id, model.ROLE_SYSTEM_ADMIN.Id)
Client.Login(user.Email, "passwd1")
Client.SetTeamId(team.Id)
@@ -244,7 +244,7 @@ func TestTeamPermDelete(t *testing.T) {
c.RequestId = model.NewId()
c.IpAddress = "test"
- err := PermanentDeleteTeam(team)
+ err := app.PermanentDeleteTeam(team)
if err != nil {
t.Fatal(err)
}