We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e5180c commit f92b0b9Copy full SHA for f92b0b9
src/agent/src/Bridge/Brave/Tests/BraveTest.php
@@ -58,8 +58,7 @@ public function testPassesCorrectParametersToApi()
58
59
public function testHandlesEmptyResults()
60
{
61
- $result = new MockResponse((string) json_encode(['web' => ['results' => []]]));
62
- $httpClient = new MockHttpClient($result);
+ $httpClient = new MockHttpClient(new JsonMockResponse(['web' => ['results' => []]]));
63
$brave = new Brave($httpClient, 'test-api-key');
64
65
$results = $brave('this should return nothing');
0 commit comments