test: add null and empty token cases to logout test
Red phase: Logout should handle null and empty string tokens gracefully without throwing. Currently null causes TypeError.
This commit is contained in:
parent
a681d93f5d
commit
f2bc33592d
1 changed files with 14 additions and 0 deletions
|
|
@ -50,4 +50,18 @@ class LogoutTest extends TestCase
|
|||
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
public function testDoesNotThrowForNullToken(): void
|
||||
{
|
||||
$this->useCase->execute(null);
|
||||
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
public function testDoesNotThrowForEmptyStringToken(): void
|
||||
{
|
||||
$this->useCase->execute('');
|
||||
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue