function NotificationHandlerTest::userMailsProvider
Same name and namespace in other branches
- main core/modules/user/tests/src/Kernel/NotificationHandlerTest.php \Drupal\Tests\user\Kernel\NotificationHandlerTest::userMailsProvider()
Data provider for user mail testing.
Return value
array An array of operations and the mail keys they should send.
File
-
core/
modules/ user/ tests/ src/ Kernel/ NotificationHandlerTest.php, line 42
Class
- NotificationHandlerTest
- Tests NotificationHandler use of user.settings.notify.*.
Namespace
Drupal\Tests\user\KernelCode
public static function userMailsProvider() : array {
return [
'cancel confirm notification' => [
'sendCancelConfirm',
'notify.cancel_confirm',
[
'cancel_confirm',
],
],
'password reset notification' => [
'sendPasswordReset',
'notify.password_reset',
[
'password_reset',
],
],
'status activated notification' => [
'sendStatusActivated',
'notify.status_activated',
[
'status_activated',
],
],
'status blocked notification' => [
'sendStatusBlocked',
'notify.status_blocked',
[
'status_blocked',
],
],
'status canceled notification' => [
'sendStatusCanceled',
'notify.status_canceled',
[
'status_canceled',
],
],
'register admin created notification' => [
'sendRegisterAdminCreated',
'notify.register_admin_created',
[
'register_admin_created',
],
],
'register no approval required notification' => [
'sendRegisterNoApprovalRequired',
'notify.register_no_approval_required',
[
'register_no_approval_required',
],
],
'register pending approval notification' => [
'sendRegisterPendingApproval',
'notify.register_pending_approval',
[
'register_pending_approval',
'register_pending_approval_admin',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.