public function OpenIDConnectTest::dataProviderForCreateUser in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x tests/src/Unit/OpenIDConnectTest.php \Drupal\Tests\openid_connect\Unit\OpenIDConnectTest::dataProviderForCreateUser()
Data provider for the testCreateUser method.
Return value
array|array[] The parameters to pass to testCreateUser().
File
- tests/
src/ Unit/ OpenIDConnectTest.php, line 506
Class
- OpenIDConnectTest
- Provides tests for the OpenID Connect module.
Namespace
Drupal\Tests\openid_connect\UnitCode
public function dataProviderForCreateUser() : array {
return [
[
$this
->randomMachineName(),
[
'email' => 'test@123.com',
],
'',
FALSE,
FALSE,
],
[
$this
->randomMachineName(),
[
'email' => 'test@test123.com',
'name' => $this
->randomMachineName(),
],
$this
->randomMachineName(),
TRUE,
FALSE,
],
[
$this
->randomMachineName(),
[
'email' => 'test@test456.com',
'preferred_username' => $this
->randomMachineName(),
],
$this
->randomMachineName(),
TRUE,
TRUE,
],
];
}