public function OpenIdConnectClaimsTest::testGetOptions in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x tests/src/Unit/OpenIdConnectClaimsTest.php \Drupal\Tests\openid_connect\Unit\OpenIdConnectClaimsTest::testGetOptions()
Test the options array for the form api.
@dataProvider defaultClaimsProvider The data profiled for the claims test.
Parameters
string $key: The key for the claim.
string $scope: The scope for the claim.
string $type: The data type for the claim.
File
- tests/src/ Unit/ OpenIdConnectClaimsTest.php, line 142 
Class
- OpenIdConnectClaimsTest
- Test the OpenIdConnectClaims class.
Namespace
Drupal\Tests\openid_connect\UnitCode
public function testGetOptions($key, $scope, $type) : void {
  // Get the options.
  $options = $this->openIdConnectClaims
    ->getOptions();
  $this
    ->assertArrayHasKey(ucfirst($scope), $options);
  $this
    ->assertArrayHasKey($key, $options[ucfirst($scope)]);
}