Skip to content

Commit 4a29253

Browse files
committed
Update tests based on new constructor
1 parent 271befb commit 4a29253

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/Capability/Registry/RegistryTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Mcp\Schema\ResourceTemplate;
1919
use Mcp\Schema\ServerCapabilities;
2020
use Mcp\Schema\Tool;
21+
use Mcp\Server\NotificationPublisher;
2122
use PHPUnit\Framework\MockObject\MockObject;
2223
use PHPUnit\Framework\TestCase;
2324
use 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

0 commit comments

Comments
 (0)