function UserMailNotifyTest::userMailsProvider

Same name and namespace in other branches
  1. 8.9.x core/modules/user/tests/src/Kernel/UserMailNotifyTest.php \Drupal\Tests\user\Kernel\UserMailNotifyTest::userMailsProvider()
  2. 10 core/modules/user/tests/src/Kernel/UserMailNotifyTest.php \Drupal\Tests\user\Kernel\UserMailNotifyTest::userMailsProvider()
  3. 11.x 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 36

Class

UserMailNotifyTest
Tests <a href="/api/drupal/core%21modules%21user%21user.module/function/_user_mail_notify/9" title="Creates and sends a notification email following a change to a user account." class="local">_user_mail_notify</a>() 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',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.