Skip to content

Commit

Permalink
Add server testcase for engine/user.go (#427)
Browse files Browse the repository at this point in the history
* [MM-836]: Added server testcases for engine/calendar.go file

* [MM-837]: Added server testcase for engine/daily_summary.go file (#12)

* fixed missing function call argumnet

* [MM-838]: Added sever testcase for engine/event_responder.go file (#13)

* Added server testcases for engine/subscription.go file

* Added server testcases for engine/user.go

* deleted unwanted files

* review fixes
  • Loading branch information
Kshitij-Katiyar authored Dec 16, 2024
1 parent 907c59f commit 40474b1
Show file tree
Hide file tree
Showing 2 changed files with 602 additions and 4 deletions.
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

0 comments on commit 40474b1

Please sign in to comment.