diff options
author | Chris Duarte <csduarte@users.noreply.github.com> | 2018-01-02 05:46:31 -0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-01-02 08:46:31 -0500 |
commit | 384ca1017aec3ae65c925e24199adc1c0c0b43e7 (patch) | |
tree | c0daaf48b4e4f315550661f0c11e1bca453a2c97 /api4/team_test.go | |
parent | d9b8c4db76956f004c6405ab8e44cf1c17308af7 (diff) | |
download | chat-384ca1017aec3ae65c925e24199adc1c0c0b43e7.tar.gz chat-384ca1017aec3ae65c925e24199adc1c0c0b43e7.tar.bz2 chat-384ca1017aec3ae65c925e24199adc1c0c0b43e7.zip |
Allow for custom subject in TestInviteUsersToTeam (#7999)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r-- | api4/team_test.go | 6 |
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 |