Skip to content

Commit 83bc08a

Browse files
pdphilipgithub-actions[bot]
authored andcommitted
apply pint formatting
1 parent 10b0c1a commit 83bc08a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/ExceptionTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
use Elastic\Elasticsearch\Exception\ClientResponseException;
6+
use GuzzleHttp\Psr7\Response;
57
use Illuminate\Support\Facades\DB;
68
use PDPhilip\Elasticsearch\Exceptions\QueryException;
79
use PDPhilip\Elasticsearch\Tests\Models\PageHit;
@@ -22,8 +24,8 @@
2224

2325
it('handles error responses without error.type structure', function () {
2426
$body = json_encode(['status' => 400, 'message' => 'Something went wrong']);
25-
$response = new \GuzzleHttp\Psr7\Response(400, [], $body);
26-
$previous = new \Elastic\Elasticsearch\Exception\ClientResponseException($body, 400);
27+
$response = new Response(400, [], $body);
28+
$previous = new ClientResponseException($body, 400);
2729
$previous->setResponse($response);
2830

2931
$exception = new QueryException($previous);
@@ -33,8 +35,8 @@
3335
});
3436

3537
it('handles error responses with null json body', function () {
36-
$response = new \GuzzleHttp\Psr7\Response(400, [], 'not json at all');
37-
$previous = new \Elastic\Elasticsearch\Exception\ClientResponseException('not json at all', 400);
38+
$response = new Response(400, [], 'not json at all');
39+
$previous = new ClientResponseException('not json at all', 400);
3840
$previous->setResponse($response);
3941

4042
$exception = new QueryException($previous);

0 commit comments

Comments
 (0)