You are here

public function UserMailNotifyTest::userMailsProvider in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/tests/src/Kernel/UserMailNotifyTest.php \Drupal\Tests\user\Kernel\UserMailNotifyTest::userMailsProvider()

Data provider for user mail testing.

Return value

array

File

core/modules/user/tests/src/Kernel/UserMailNotifyTest.php, line 24

Class

UserMailNotifyTest
Tests _user_mail_notify() use of user.settings.notify.*.

Namespace

Drupal\Tests\user\Kernel

Code

public function userMailsProvider() {
  return [
    'cancel confirm notification' => [
      'cancel_confirm',
      [
        'cancel_confirm',
      ],
    ],
    'password reset notification' => [
      'password_reset',
      [
        'password_reset',
      ],
    ],
    'status activated notification' => [
      'status_activated',
      [
        'status_activated',
      ],
    ],
    'status blocked notification' => [
      'status_blocked',
      [
        'status_blocked',
      ],
    ],
    'status canceled notification' => [
      'status_canceled',
      [
        'status_canceled',
      ],
    ],
    'register admin created notification' => [
      'register_admin_created',
      [
        'register_admin_created',
      ],
    ],
    'register no approval required notification' => [
      'register_no_approval_required',
      [
        'register_no_approval_required',
      ],
    ],
    'register pending approval notification' => [
      'register_pending_approval',
      [
        'register_pending_approval',
        'register_pending_approval_admin',
      ],
    ],
  ];
}