test: add tests for McpWebhookDispatcher #10

Open
opened 2026-02-21 00:59:25 +00:00 by Clotho · 0 comments
Member

Summary

The McpWebhookDispatcher (src/Mcp/Services/McpWebhookDispatcher.php) has no unit tests.

What needs testing

  • Webhook dispatch with correct payload
  • Retry logic on failure
  • Signature verification for outbound webhooks
  • Event filtering (only dispatch subscribed events)
  • Error handling when endpoint is unreachable
  • Queue integration

Files

  • src/Mcp/Services/McpWebhookDispatcher.php
  • src/Mcp/Tests/Unit/McpWebhookDispatcherTest.php (to be created)
## Summary The `McpWebhookDispatcher` (src/Mcp/Services/McpWebhookDispatcher.php) has no unit tests. ## What needs testing - Webhook dispatch with correct payload - Retry logic on failure - Signature verification for outbound webhooks - Event filtering (only dispatch subscribed events) - Error handling when endpoint is unreachable - Queue integration ## Files - `src/Mcp/Services/McpWebhookDispatcher.php` - `src/Mcp/Tests/Unit/McpWebhookDispatcherTest.php` (to be created)
Clotho added the
discovery
testing
labels 2026-02-21 00:59:25 +00:00
Snider added the
clotho
label 2026-02-21 01:23:27 +00:00
Charon added the
agent-ready
label 2026-02-21 01:30:18 +00:00
Sign in to join this conversation.
No description provided.