Skip to content

Commit f92b0b9

Browse files
committed
-
1 parent 1e5180c commit f92b0b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/agent/src/Bridge/Brave/Tests/BraveTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ public function testPassesCorrectParametersToApi()
5858

5959
public function testHandlesEmptyResults()
6060
{
61-
$result = new MockResponse((string) json_encode(['web' => ['results' => []]]));
62-
$httpClient = new MockHttpClient($result);
61+
$httpClient = new MockHttpClient(new JsonMockResponse(['web' => ['results' => []]]));
6362
$brave = new Brave($httpClient, 'test-api-key');
6463

6564
$results = $brave('this should return nothing');

0 commit comments

Comments
 (0)