diff options
author | kaniini <nenolod@gmail.com> | 2019-04-16 18:44:07 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-04-16 18:44:07 +0000 |
commit | 73df3046e014ae16e03f16a9c82921652cefcb54 (patch) | |
tree | 00a5d0bb027e65bfa3e7894b489dad7226aa645b /test/web/admin_api/admin_api_controller_test.exs | |
parent | 02a53d00c93969ff99a460f69e92be5af2628691 (diff) | |
parent | c5d0fffeaf64123334f62343d752467683a67229 (diff) | |
download | pleroma-73df3046e014ae16e03f16a9c82921652cefcb54.tar.gz pleroma-73df3046e014ae16e03f16a9c82921652cefcb54.zip |
Merge branch 'feature/788-separate-email-addresses' into 'develop'
Feature/788 separate email addresses
Closes #788
See merge request pleroma/pleroma!1040
Diffstat (limited to 'test/web/admin_api/admin_api_controller_test.exs')
-rw-r--r-- | test/web/admin_api/admin_api_controller_test.exs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 6d89a0919..b3167a861 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -317,13 +317,21 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do assert token_record refute token_record.used - Swoosh.TestAssertions.assert_email_sent( + notify_email = Pleroma.Config.get([:instance, :notify_email]) + instance_name = Pleroma.Config.get([:instance, :name]) + + email = Pleroma.Emails.UserEmail.user_invitation_email( user, token_record, recipient_email, recipient_name ) + + Swoosh.TestAssertions.assert_email_sent( + from: {instance_name, notify_email}, + to: {recipient_name, recipient_email}, + html_body: email.html_body ) end |