diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-04-10 17:57:41 +0700 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-04-10 17:57:41 +0700 |
commit | fe13a1d78c13fbe7b3027d442a6f6906440e5acc (patch) | |
tree | 4fd819484da27d9c44f6a1df1597bf5133662864 /test/web/twitter_api/twitter_api_test.exs | |
parent | 144648de92abea7330cf264b7608634a27bb6bdf (diff) | |
download | pleroma-fe13a1d78c13fbe7b3027d442a6f6906440e5acc.tar.gz pleroma-fe13a1d78c13fbe7b3027d442a6f6906440e5acc.zip |
adding notify_email setting for trigger emails
Diffstat (limited to 'test/web/twitter_api/twitter_api_test.exs')
-rw-r--r-- | test/web/twitter_api/twitter_api_test.exs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index 6c00244de..24e46408c 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -321,7 +321,16 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do assert user.info.confirmation_pending - Swoosh.TestAssertions.assert_email_sent(Pleroma.UserEmail.account_confirmation_email(user)) + email = Pleroma.UserEmail.account_confirmation_email(user) + + notify_email = Pleroma.Config.get([:instance, :notify_email]) + instance_name = Pleroma.Config.get([:instance, :name]) + + Swoosh.TestAssertions.assert_email_sent( + from: {instance_name, notify_email}, + to: {user.name, user.email}, + html_body: email.html_body + ) end test "it registers a new user and parses mentions in the bio" do |