silverstripe / silverstripe-session-manager

Allow users to manage and revoke access to multiple login sessions across devices.
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Fix mock time in GarbageCollection test #155

Closed lekoala closed 11 months ago

lekoala commented 1 year ago

i don't know if it's fully intentional that a persistent login hash can be deleted while the session is still valid, but anyways, here it goes :-)

by changing the mock time, we can show that a persisted session should be cleared if LastAccesed + session lifetime < now (or should not be cleared, if the persistent session without a hash is meant to stay => not what i did here, but i can revert that part if needed)

fixes https://github.com/silverstripe/silverstripe-session-manager/issues/154