add idempotent logout for missing token test
This commit is contained in:
parent
7c996ade74
commit
383a8a0fbd
1 changed files with 7 additions and 0 deletions
|
|
@ -36,4 +36,11 @@ class LogoutTest extends TestCase
|
||||||
|
|
||||||
$this->assertNull($this->sessionRepo->findByToken('session-token'));
|
$this->assertNull($this->sessionRepo->findByToken('session-token'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testDeletesMissingTokenIsIdempotent(): void
|
||||||
|
{
|
||||||
|
$this->logout->execute('nonexistent-token');
|
||||||
|
|
||||||
|
$this->assertNull($this->sessionRepo->findByToken('nonexistent-token'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue