public function OpenIDConnectTest::dataProviderForExtractSub in OpenID Connect / OAuth client 8
Data provider for the testExtractSub method.
Return value
array|array[] The array of tests for the method.
File
- tests/
src/ Unit/ OpenIDConnectTest.php, line 302
Class
- OpenIDConnectTest
- Provides tests for the OpenID Connect module.
Namespace
Drupal\Tests\openid_connect\UnitCode
public function dataProviderForExtractSub() : array {
$randomSub = $this
->randomMachineName();
return [
[
[],
[],
FALSE,
],
[
[
'sub' => $randomSub,
],
[],
$randomSub,
],
[
[],
[
'sub' => $randomSub,
],
$randomSub,
],
[
[
'sub' => $this
->randomMachineName(),
],
[
'sub' => $randomSub,
],
FALSE,
],
];
}