feat: Introduce typed authentication failure event
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ final class SecurityEventTest extends TestCase
|
||||
{
|
||||
self::assertSame(
|
||||
SecurityEvent::SEVERITY_WARNING,
|
||||
(new SecurityEvent(SecurityEvent::AUTH_FAILURE))->getSeverity(),
|
||||
(new SecurityEvent(SecurityEvent::AUTH_LOGOUT))->getSeverity(),
|
||||
);
|
||||
self::assertSame(
|
||||
SecurityEvent::SEVERITY_ERROR,
|
||||
@@ -38,7 +38,7 @@ final class SecurityEventTest extends TestCase
|
||||
public function allowsSeverityOverride(): void
|
||||
{
|
||||
$event = new SecurityEvent(
|
||||
SecurityEvent::AUTH_FAILURE,
|
||||
SecurityEvent::AUTH_LOGOUT,
|
||||
severity: SecurityEvent::SEVERITY_CRITICAL,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user