aboutsummaryrefslogtreecommitdiff
path: root/test/web/admin_api/controllers/admin_api_controller_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-07-11 07:20:35 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-07-11 07:20:35 +0300
commit62fc8eab0dfd3f4c60c8f36fd3a544d6785ff2c6 (patch)
tree54b30c8be7ea2fbe701f17f0bc10509f4fa9ed2d /test/web/admin_api/controllers/admin_api_controller_test.exs
parentd6f67fa91b00b28d7be9f82bb300f9d650c73744 (diff)
downloadpleroma-62fc8eab0dfd3f4c60c8f36fd3a544d6785ff2c6.tar.gz
fix reset confirmation email in admin section
Diffstat (limited to 'test/web/admin_api/controllers/admin_api_controller_test.exs')
-rw-r--r--test/web/admin_api/controllers/admin_api_controller_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/admin_api/controllers/admin_api_controller_test.exs b/test/web/admin_api/controllers/admin_api_controller_test.exs
index c2433f23c..b734a34a5 100644
--- a/test/web/admin_api/controllers/admin_api_controller_test.exs
+++ b/test/web/admin_api/controllers/admin_api_controller_test.exs
@@ -9,6 +9,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
import ExUnit.CaptureLog
import Mock
import Pleroma.Factory
+ import Swoosh.TestAssertions
alias Pleroma.Activity
alias Pleroma.Config
@@ -1721,6 +1722,9 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
"@#{admin.nickname} re-sent confirmation email for users: @#{first_user.nickname}, @#{
second_user.nickname
}"
+
+ ObanHelpers.perform_all()
+ assert_email_sent(Pleroma.Emails.UserEmail.account_confirmation_email(first_user))
end
end