Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add server testcase for engine/user.go #427

Merged
merged 10 commits into from
Dec 16, 2024
15 changes: 11 additions & 4 deletions calendar/engine/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ import (
)

const (
MockRemoteUserID = "testRemoteUserID"
MockMMModelUserID = "testMMModelUserID"
MockMMUserID = "testMMUserID"
MockRemoteUserID = "testRemoteUserID"
MockMMModelUserID = "testMMModelUserID"
MockMMUserID = "testMMUserID"
MockMMUsername = "testMMUsername"
MockMMUserDisplayName = "testMMUserDisplayName"
MockRemoteID = "testRemoteID"

MockCalendarName = "Test Calendar"
MockCalendarID = "testCalendarID"
Expand All @@ -30,6 +33,9 @@ const (

MockActingUserID = "testActingUserID"
MockActingUserRemoteID = "testActingUserRemoteID"

MockTimeZone = "testTimeZone"
mockChannelID = "testChannelID"
)

// revive:disable:unexported-return
Expand Down Expand Up @@ -104,7 +110,8 @@ func GetMockUserWithDefaultDailySummaryUserSettings() *User {
return &User{
MattermostUserID: MockMMUserID,
MattermostUser: &model.User{
Id: MockMMModelUserID,
Id: MockMMModelUserID,
Username: MockMMUsername,
},
User: &store.User{
Remote: &remote.User{
Expand Down
Loading
Loading