Skip to content

Commit b8f1f94

Browse files
committed
fix
1 parent a756ee1 commit b8f1f94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/src/Feature/McpServer/Prompt/JsonSerializationTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ protected function assertConfigItems(DocumentCompiler $compiler, ConfigRegistryA
7777

7878
$decodedRegistry = \json_decode($serializedRegistry, true);
7979
$this->assertIsArray($decodedRegistry);
80-
$this->assertArrayHasKey('prompts', $decodedRegistry);
8180

8281
// The registry should only serialize regular prompts, not templates
83-
$promptsInSerialized = $decodedRegistry['prompts'];
84-
foreach ($promptsInSerialized as $prompt) {
82+
foreach ($decodedRegistry as $prompt) {
8583
$this->assertNotEquals('template', $prompt['type'] ?? 'prompt');
8684
}
8785
}

0 commit comments

Comments
 (0)