public function UserUnblockTest::userProvider in Rules 8.3
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\RulesActionCode
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,
      [],
    ],
  ];
}