File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/Capability/Registry Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1818use Mcp \Schema \ResourceTemplate ;
1919use Mcp \Schema \ServerCapabilities ;
2020use Mcp \Schema \Tool ;
21+ use Mcp \Server \NotificationPublisher ;
2122use PHPUnit \Framework \MockObject \MockObject ;
2223use PHPUnit \Framework \TestCase ;
2324use Psr \Log \LoggerInterface ;
@@ -30,7 +31,7 @@ class RegistryTest extends TestCase
3031 protected function setUp (): void
3132 {
3233 $ this ->logger = $ this ->createMock (LoggerInterface::class);
33- $ this ->registry = new Registry (null , $ this ->logger );
34+ $ this ->registry = new Registry (new NotificationPublisher () , $ this ->logger );
3435 }
3536
3637 public function testConstructorWithDefaults (): void
@@ -39,9 +40,6 @@ public function testConstructorWithDefaults(): void
3940 $ capabilities = $ registry ->getCapabilities ();
4041
4142 $ this ->assertInstanceOf (ServerCapabilities::class, $ capabilities );
42- $ this ->assertFalse ($ capabilities ->toolsListChanged );
43- $ this ->assertFalse ($ capabilities ->resourcesListChanged );
44- $ this ->assertFalse ($ capabilities ->promptsListChanged );
4543 }
4644
4745 public function testGetCapabilitiesWhenEmpty (): void
You can’t perform that action at this time.
0 commit comments