Currently working through basic integration tests with apickli/cucmber and we are looking to mock an expired token for error handling purposes. Is there any way to do this successfully so that the tests do not fail once the expired token we are using is purged from the database (3 days)? After the 3 days - the tests default to giving an invalid token response versus expired.
Anyone figure out a way to do this dynamically for their tests or just mock it out?
Thanks.