@@ -36,21 +36,6 @@ public function it_returns_uid_claim_as_id_if_present(): void
3636 $ this ->assertEquals ('6e3ef9b3-e37b-428e-af30-05f3a96dbbe4 ' , $ jwt ->getUserId ());
3737 }
3838
39- /**
40- * @test
41- */
42- public function it_returns_uitid_v1_claim_as_id_if_present (): void
43- {
44- $ jwt = JsonWebTokenFactory::createWithClaims (
45- [
46- 'https://publiq.be/uitidv1id ' => 'b55f041e-5c5e-4850-9fb8-8cf73d538c56 ' ,
47- 'sub ' => 'auth0|ce6abd8f-b1e2-4bce-9dde-08af64438e87 ' ,
48- ]
49- );
50-
51- $ this ->assertEquals ('b55f041e-5c5e-4850-9fb8-8cf73d538c56 ' , $ jwt ->getUserId ());
52- }
53-
5439 /**
5540 * @test
5641 */
@@ -154,32 +139,6 @@ public function it_returns_v2_user_access_token_type_otherwise(): void
154139 $ this ->assertEquals (JsonWebToken::UIT_ID_V2_USER_ACCESS_TOKEN , $ jwt ->getType ());
155140 }
156141
157- /**
158- * @test
159- */
160- public function it_returns_user_identity_details_for_v1_jwt_provider_tokens (): void
161- {
162- $ userIdentityResolver = $ this ->createMock (UserIdentityResolver::class);
163- $ userIdentityResolver ->expects ($ this ->never ())
164- ->method ('getUserById ' );
165-
166- $ v1Token = JsonWebTokenFactory::createWithClaims (
167- [
168- 'uid ' => 'c82bd40c-1932-4c45-bd5d-a76cc9907cee ' ,
169- 'nick ' => 'mock-nickname ' ,
170- 'email ' => 'mock@example.com ' ,
171- ]
172- );
173-
174- $ details = new UserIdentityDetails (
175- 'c82bd40c-1932-4c45-bd5d-a76cc9907cee ' ,
176- 'mock-nickname ' ,
177- 'mock@example.com '
178- );
179-
180- $ this ->assertEquals ($ details , $ v1Token ->getUserIdentityDetails ($ userIdentityResolver ));
181- }
182-
183142 /**
184143 * @test
185144 */
0 commit comments