summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
Diffstat (limited to 'api4')
-rw-r--r--api4/team_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/api4/team_test.go b/api4/team_test.go
index 43161f0e2..c26c34a22 100644
--- a/api4/team_test.go
+++ b/api4/team_test.go
@@ -1894,7 +1894,11 @@ func TestInviteUsersToTeam(t *testing.T) {
}
nameFormat := *th.App.Config().TeamSettings.TeammateNameDisplay
- expectedSubject := "[Mattermost] " + th.SystemAdminUser.GetDisplayName(nameFormat) + " invited you to join " + th.BasicTeam.DisplayName + " Team"
+ expectedSubject := utils.T("api.templates.invite_subject",
+ map[string]interface{}{"SenderName": th.SystemAdminUser.GetDisplayName(nameFormat),
+ "TeamDisplayName": th.BasicTeam.DisplayName,
+ "SiteName": utils.ClientCfg["SiteName"]})
+
//Check if the email was send to the rigth email address
for _, email := range emailList {
var resultsMailbox utils.JSONMessageHeaderInbucket