aboutsummaryrefslogtreecommitdiffstats
path: root/modules/convert/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/convert/user_test.go')
-rw-r--r--modules/convert/user_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/convert/user_test.go b/modules/convert/user_test.go
index eff60d5183..3939653441 100644
--- a/modules/convert/user_test.go
+++ b/modules/convert/user_test.go
@@ -15,14 +15,14 @@ func TestUser_ToUser(t *testing.T) {
user1 := models.AssertExistsAndLoadBean(t, &models.User{ID: 1, IsAdmin: true}).(*models.User)
- apiUser := ToUser(user1, true, true)
+ apiUser := toUser(user1, true, true)
assert.True(t, apiUser.IsAdmin)
user2 := models.AssertExistsAndLoadBean(t, &models.User{ID: 2, IsAdmin: false}).(*models.User)
- apiUser = ToUser(user2, true, true)
+ apiUser = toUser(user2, true, true)
assert.False(t, apiUser.IsAdmin)
- apiUser = ToUser(user1, false, false)
+ apiUser = toUser(user1, false, false)
assert.False(t, apiUser.IsAdmin)
}