Allow for custom subject in TestInviteUsersToTeam (#7999)

Этот коммит содержится в:
Chris Duarte
2018-01-02 05:46:31 -08:00
коммит произвёл Joram Wilander
родитель d9b8c4db76
Коммит 384ca1017a

Просмотреть файл

@@ -1894,7 +1894,11 @@ func TestInviteUsersToTeam(t *testing.T) {
} }
nameFormat := *th.App.Config().TeamSettings.TeammateNameDisplay 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 //Check if the email was send to the rigth email address
for _, email := range emailList { for _, email := range emailList {
var resultsMailbox utils.JSONMessageHeaderInbucket var resultsMailbox utils.JSONMessageHeaderInbucket