@@ -77,26 +77,26 @@ public function test_wayf_flow_all_four_legs_share_the_same_correlation_id(): vo
7777 // Leg 1 — SSO: mint the correlation ID.
7878 $ this ->service ->mint ($ spRequestId );
7979 $ this ->service ->resolve ($ spRequestId );
80- $ mintedCx = $ this ->current ->get () ;
80+ $ mintedCx = $ this ->current ->correlationId ;
8181 $ this ->assertNotNull ($ mintedCx , 'SSO must mint a correlation ID ' );
8282
8383 // Leg 2 — ContinueToIdp: resolves SP request ID A.
8484 $ leg2Current = new CurrentCorrelationId ();
8585 $ this ->newServiceWithCurrent ($ leg2Current )->resolve ($ spRequestId );
86- $ this ->assertSame ($ mintedCx , $ leg2Current ->get () , 'ContinueToIdp must see the same correlation ID ' );
86+ $ this ->assertSame ($ mintedCx , $ leg2Current ->correlationId , 'ContinueToIdp must see the same correlation ID ' );
8787
8888 // ProxyServer links the IdP request ID to the SP request ID.
8989 $ this ->service ->link ($ idpRequestId , $ spRequestId );
9090
9191 // Leg 3 — ACS: IdP response InResponseTo=B, resolves via B.
9292 $ leg3Current = new CurrentCorrelationId ();
9393 $ this ->newServiceWithCurrent ($ leg3Current )->resolve ($ idpRequestId );
94- $ this ->assertSame ($ mintedCx , $ leg3Current ->get () , 'ACS must see the same correlation ID ' );
94+ $ this ->assertSame ($ mintedCx , $ leg3Current ->correlationId , 'ACS must see the same correlation ID ' );
9595
9696 // Leg 4 — Consent: resolves SP request ID A again.
9797 $ leg4Current = new CurrentCorrelationId ();
9898 $ this ->newServiceWithCurrent ($ leg4Current )->resolve ($ spRequestId );
99- $ this ->assertSame ($ mintedCx , $ leg4Current ->get () , 'Consent must see the same correlation ID ' );
99+ $ this ->assertSame ($ mintedCx , $ leg4Current ->correlationId , 'Consent must see the same correlation ID ' );
100100 }
101101
102102 // ── Direct path (no WAYF) ─────────────────────────────────────────────────
@@ -109,7 +109,7 @@ public function test_direct_flow_acs_and_consent_share_the_correlation_id_minted
109109 $ this ->service ->mint ($ spRequestId );
110110 $ this ->service ->link ($ idpRequestId , $ spRequestId );
111111 $ this ->service ->resolve ($ spRequestId );
112- $ mintedCx = $ this ->current ->get () ;
112+ $ mintedCx = $ this ->current ->correlationId ;
113113 $ this ->assertNotNull ($ mintedCx );
114114
115115 $ ids = $ this ->session ->get ('CorrelationIds ' );
@@ -157,6 +157,6 @@ public function test_replaying_an_sso_request_does_not_change_the_correlation_id
157157 public function test_unknown_request_id_does_not_set_correlation_id (): void
158158 {
159159 $ this ->service ->resolve ('_unknown-id ' );
160- $ this ->assertNull ($ this ->current ->get () , 'Correlation ID must remain null for unknown request IDs ' );
160+ $ this ->assertNull ($ this ->current ->correlationId , 'Correlation ID must remain null for unknown request IDs ' );
161161 }
162162}
0 commit comments