@@ -92,7 +92,7 @@ public function test_no_previous_consent_given($consentType)
9292 $ this ->consentRepository
9393 ->shouldReceive ('hasConsentHash ' )
9494 ->once ()
95- ->andReturn (ConsentVersion::notGiven () );
95+ ->andReturn (ConsentVersion::NotGiven );
9696 switch ($ consentType ) {
9797 case ConsentType::Explicit:
9898 $ this ->assertFalse ($ this ->consent ->explicitConsentWasGivenFor ($ serviceProvider )->given ());
@@ -121,7 +121,7 @@ public function test_unstable_previous_consent_given($consentType)
121121 consentType: $ consentType ->value ,
122122 ))
123123 ->once ()
124- ->andReturn (ConsentVersion::unstable () );
124+ ->andReturn (ConsentVersion::Unstable );
125125
126126 switch ($ consentType ) {
127127 case ConsentType::Explicit:
@@ -151,7 +151,7 @@ public function test_stable_consent_given($consentType)
151151 consentType: $ consentType ->value ,
152152 ))
153153 ->once ()
154- ->andReturn (ConsentVersion::stable () );
154+ ->andReturn (ConsentVersion::Stable );
155155
156156 switch ($ consentType ) {
157157 case ConsentType::Explicit:
@@ -258,7 +258,7 @@ public function test_upgrade_toggle_off_preserves_legacy_hash($consentType)
258258 ))
259259 ->andReturn (true );
260260
261- $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::unstable () ));
261+ $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::Unstable ));
262262 }
263263
264264 /**
@@ -286,7 +286,7 @@ public function test_upgrade_toggle_on_clears_legacy_hash($consentType)
286286 ))
287287 ->andReturn (true );
288288
289- $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::unstable () ));
289+ $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::Unstable ));
290290 }
291291
292292 #[DataProvider('consentTypeProvider ' )]
@@ -299,7 +299,7 @@ public function test_upgrade_to_stable_consent_not_applied_when_stable($consentT
299299 $ this ->consentRepository ->shouldNotReceive ('updateConsentHash ' );
300300
301301 // Pass the pre-fetched ConsentVersion (stable) — no second DB query is made, no update triggered
302- $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::stable () ));
302+ $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::Stable ));
303303 }
304304
305305 #[DataProvider('consentTypeProvider ' )]
@@ -311,7 +311,7 @@ public function test_upgrade_not_applied_when_no_consent_given($consentType)
311311 $ this ->consentRepository ->shouldNotReceive ('updateConsentHash ' );
312312
313313 // Pass the pre-fetched ConsentVersion (notGiven) — no update should be triggered
314- $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::notGiven () ));
314+ $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::NotGiven ));
315315 }
316316
317317 #[DataProvider('consentTypeProvider ' )]
@@ -329,7 +329,7 @@ public function test_upgrade_continues_gracefully_when_attributes_changed($conse
329329
330330 // Must not throw; the warning is logged inside the repository
331331 // Pass the pre-fetched ConsentVersion (unstable) — no second DB query is made
332- $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::unstable () ));
332+ $ this ->assertNull ($ this ->consent ->upgradeAttributeHashFor ($ serviceProvider , $ consentType , ConsentVersion::Unstable ));
333333 }
334334
335335 public function test_store_consent_hash_sql_resets_deleted_at_on_duplicate (): void
0 commit comments