refactor: base event

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-08-08 22:15:24 -04:00
parent c8e6efe203
commit 62b416f13e
20 changed files with 109 additions and 99 deletions
@@ -539,7 +539,7 @@ class FirewallServiceTest extends TestCase
&$lifecycleOrigin,
&$bruteForceEvent,
): void {
$publishedTenants[] = $event->getTenantId();
$publishedTenants[] = $event->tenantIdentifier();
if ($event instanceof BruteForceDetectedEvent) {
$bruteForceEvent = $event;
}
@@ -616,12 +616,12 @@ class FirewallServiceTest extends TestCase
->with('tenant-a', '203.0.113.10', 300)
->willReturn(1);
$event = new AuthenticationFailedEvent();
$eventId = $event->getEventId();
$eventId = $event->identifier();
$this->service->handleAuthFailure($event);
$this->service->handleAuthFailure($event);
self::assertSame($eventId, $event->getEventId());
self::assertSame($eventId, $event->identifier());
}
#[TestDox('Cleanup records successful maintenance counts')]