Skip to content

Commit 6d0c0c0

Browse files
committed
tests: update search docs tests to new queries type
1 parent fa5b27a commit 6d0c0c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/Feature/Mcp/Tools/SearchDocsTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
]);
2525

2626
$tool = new SearchDocs($roster);
27-
$result = $tool->handle(['queries' => 'authentication###testing']);
27+
$result = $tool->handle(['queries' => ['authentication', 'testing']]);
2828

2929
expect($result)->toBeInstanceOf(ToolResult::class);
3030

@@ -57,7 +57,7 @@
5757
]);
5858

5959
$tool = new SearchDocs($roster);
60-
$result = $tool->handle(['queries' => 'authentication']);
60+
$result = $tool->handle(['queries' => ['authentication']]);
6161

6262
expect($result)->toBeInstanceOf(ToolResult::class);
6363

@@ -77,7 +77,7 @@
7777
]);
7878

7979
$tool = new SearchDocs($roster);
80-
$result = $tool->handle(['queries' => 'test### ###*### ']);
80+
$result = $tool->handle(['queries' => ['test', ' ', '*', ' ']]);
8181

8282
expect($result)->toBeInstanceOf(ToolResult::class);
8383

@@ -106,7 +106,7 @@
106106
]);
107107

108108
$tool = new SearchDocs($roster);
109-
$result = $tool->handle(['queries' => 'test']);
109+
$result = $tool->handle(['queries' => ['test']]);
110110

111111
expect($result)->toBeInstanceOf(ToolResult::class);
112112

@@ -129,7 +129,7 @@
129129
]);
130130

131131
$tool = new SearchDocs($roster);
132-
$result = $tool->handle(['queries' => 'nonexistent']);
132+
$result = $tool->handle(['queries' => ['nonexistent']]);
133133

134134
expect($result)->toBeInstanceOf(ToolResult::class);
135135

@@ -149,7 +149,7 @@
149149
]);
150150

151151
$tool = new SearchDocs($roster);
152-
$result = $tool->handle(['queries' => 'test', 'token_limit' => 5000]);
152+
$result = $tool->handle(['queries' => ['test'], 'token_limit' => 5000]);
153153

154154
expect($result)->toBeInstanceOf(ToolResult::class);
155155

@@ -169,7 +169,7 @@
169169
]);
170170

171171
$tool = new SearchDocs($roster);
172-
$result = $tool->handle(['queries' => 'test', 'token_limit' => 2000000]);
172+
$result = $tool->handle(['queries' => ['test'], 'token_limit' => 2000000]);
173173

174174
expect($result)->toBeInstanceOf(ToolResult::class);
175175

0 commit comments

Comments
 (0)