1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 10:24:03 +00:00

rename command to PurgeImpersonationTokens

This commit is contained in:
Samuel Štancl 2025-10-28 13:42:42 +01:00
parent c3c5955c84
commit a0727fe7a7
No known key found for this signature in database
GPG key ID: BA146259A1E16C57
3 changed files with 6 additions and 6 deletions

View file

@ -382,7 +382,7 @@ test('expired impersonation tokens can be cleaned up using a command', function
expect(ImpersonationToken::find($oldToken->token))->not()->toBeNull();
expect(ImpersonationToken::find($anotherOldToken->token))->not()->toBeNull();
pest()->artisan('tenants:clear-expired-impersonation-tokens')
pest()->artisan('tenants:purge-impersonation-tokens')
->assertExitCode(0)
->expectsOutputToContain('2 expired impersonation tokens deleted');
@ -399,7 +399,7 @@ test('expired impersonation tokens can be cleaned up using a command', function
// With ttl set to 80s, the active token should not be deleted (token is only considered expired if older than 80s)
UserImpersonation::$ttl = 80;
pest()->artisan('tenants:clear-expired-impersonation-tokens')
pest()->artisan('tenants:purge-impersonation-tokens')
->assertExitCode(0)
->expectsOutputToContain('0 expired impersonation tokens deleted');