function LoginCommandTest::invalidUserProvider

Data provider for testing invalid user login attempts.

Return value

array Test cases.

File

core/modules/user/tests/src/Kernel/Command/LoginCommandTest.php, line 82

Class

LoginCommandTest
Tests user:login console command failure modes (blocked, user not found).

Namespace

Drupal\Tests\user\Kernel\Command

Code

public static function invalidUserProvider() : array {
  return [
    'uid' => [
      'property' => 'uid',
      'value' => '20',
    ],
    'name' => [
      'property' => 'name',
      'value' => 'not-a-user',
    ],
    'mail' => [
      'property' => 'mail',
      'value' => 'not-a-user@example.com',
    ],
  ];
}

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