Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: Remove unused event notifier test
  • Loading branch information
CodeWithKyrian committed Jun 13, 2025
commit 00455640282bdad7f7436ca11ccac3dc529257d9
17 changes: 0 additions & 17 deletions tests/Feature/McpServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,6 @@ public function test_auto_discovery_is_skipped_if_disabled()
$this->assertNull($registry->findTool('stub_tool_one'), "Tool 'stub_tool_one' should not be found if auto-discovery is off.");
}

public function test_event_notifiers_are_set_on_core_registry_and_dispatch_laravel_events()
{
Event::fake();

$server = $this->app->make('mcp.server');
$registry = $server->getRegistry();

$newToolName = 'dynamic_tool_for_event_test';
$this->assertNull($registry->findTool($newToolName));

$registry->registerTool(
new ToolDefinition(ManualTestHandler::class, 'handleTool', $newToolName, 'd', [])
);

Event::assertDispatched(ToolsListChanged::class);
}

public function test_http_integrated_routes_are_registered_if_enabled()
{
$this->assertTrue(Route::has('mcp.sse'));
Expand Down