add idempotent logout for missing token test

This commit is contained in:
Yisroel Baum 2026-05-18 22:06:46 +03:00
parent 7c996ade74
commit 383a8a0fbd
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -36,4 +36,11 @@ class LogoutTest extends TestCase
$this->assertNull($this->sessionRepo->findByToken('session-token'));
}
public function testDeletesMissingTokenIsIdempotent(): void
{
$this->logout->execute('nonexistent-token');
$this->assertNull($this->sessionRepo->findByToken('nonexistent-token'));
}
}