for($this->tenant)->create([ 'status' => 'published', 'slug' => 'toolkit-event', ]); GuestNotification::factory()->create([ 'tenant_id' => $this->tenant->id, 'event_id' => $event->id, 'type' => GuestNotificationType::BROADCAST, 'title' => 'Broadcast', ]); GuestNotification::factory()->create([ 'tenant_id' => $this->tenant->id, 'event_id' => $event->id, 'type' => GuestNotificationType::UPLOAD_ALERT, 'title' => 'Upload Hinweis', ]); $response = $this->authenticatedRequest('GET', "/api/v1/tenant/events/{$event->slug}/toolkit"); $response->assertOk(); $response->assertJsonPath('notifications.summary.total', 2); $response->assertJsonPath('notifications.summary.broadcasts.total', 1); $response->assertJsonCount(2, 'notifications.recent'); } }