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:
Yisroel Baum 2026-05-17 10:09:20 +03:00
parent a681d93f5d
commit f2bc33592d
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -50,4 +50,18 @@ class LogoutTest extends TestCase
$this->assertTrue(true); $this->assertTrue(true);
} }
public function testDoesNotThrowForNullToken(): void
{
$this->useCase->execute(null);
$this->assertTrue(true);
}
public function testDoesNotThrowForEmptyStringToken(): void
{
$this->useCase->execute('');
$this->assertTrue(true);
}
} }