function UserUnblockTest::userProvider

Data provider for ::testUnblockUser.

File

tests/src/Unit/Integration/RulesAction/UserUnblockTest.php, line 89

Class

UserUnblockTest
@coversDefaultClass \Drupal\rules\Plugin\RulesAction\UserUnblock @group RulesAction

Namespace

Drupal\Tests\rules\Unit\Integration\RulesAction

Code

public function userProvider() {
    return [
        // Test blocked authenticated user.
[
            self::BLOCKED,
            self::AUTHENTICATED,
            1,
            [
                'user',
            ],
        ],
        // Test active anonymous user.
[
            self::ACTIVE,
            self::ANONYMOUS,
            0,
            [],
        ],
        // Test active authenticated user.
[
            self::ACTIVE,
            self::AUTHENTICATED,
            0,
            [],
        ],
        // Test blocked anonymous user.
[
            self::BLOCKED,
            self::ANONYMOUS,
            0,
            [],
        ],
    ];
}