|
7 | 7 | use Pdsinterop\Solid\Auth\Exception\LogicException; |
8 | 8 | use PHPUnit\Framework\TestCase; |
9 | 9 |
|
| 10 | +/** |
| 11 | + * @coversNothing |
| 12 | + */ |
10 | 13 | class ServerTest extends TestCase |
11 | 14 | { |
12 | 15 | final public function testServerConfigShouldComplainWhenInstantiatedWithoutData() : void |
@@ -95,13 +98,25 @@ final public function testServerConfigShouldReturnArrayWhenSerializedWithRequire |
95 | 98 | */ |
96 | 99 | final public function testServerConfigShouldReturnExpectedValuesWhenSerializedWithRequiredKeysPresent(array $actual) |
97 | 100 | { |
98 | | - self::assertEquals($actual, [ |
| 101 | + self::assertEquals([ |
99 | 102 | 'authorization_endpoint' => 'https://server/authorize', |
100 | 103 | 'id_token_signing_alg_values_supported' => ['RS256'], |
101 | 104 | 'issuer' => 'https://server/identifier', |
102 | 105 | 'jwks_uri' => 'https://server/jwk', |
103 | | - 'response_types_supported' => ['code', 'id_token', 'token'], |
| 106 | + 'response_types_supported' => ['code', 'code token', 'code id_token', 'id_token code', 'id_token', 'id_token token', 'code id_token token', 'none'], |
104 | 107 | 'subject_types_supported' => ['public'], |
105 | | - ]); |
| 108 | + 'token_types_supported' => ['legacyPop','dpop'], |
| 109 | + 'response_modes_supported' => ['query', 'fragment'], |
| 110 | + 'grant_types_supported' => ['authorization_code', 'implicit', 'refresh_token', 'client_credentials'], |
| 111 | + 'token_endpoint_auth_methods_supported' => 'client_secret_basic', |
| 112 | + 'token_endpoint_auth_signing_alg_values_supported' => ['RS256'], |
| 113 | + 'display_values_supported' => [], |
| 114 | + 'claim_types_supported' => ['normal'], |
| 115 | + 'claims_supported' => [], |
| 116 | + 'claims_parameter_supported' => false, |
| 117 | + 'request_parameter_supported' => true, |
| 118 | + 'request_uri_parameter_supported' => false, |
| 119 | + 'require_request_uri_registration' => false |
| 120 | + ], $actual); |
106 | 121 | } |
107 | 122 | } |
0 commit comments