Skip to content

Commit

Permalink
Use GuzzleSender by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 committed Sep 14, 2023
1 parent de4386f commit 5804282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/saloon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use Saloon\HttpSender\HttpSender;
use Saloon\Http\Senders\GuzzleSender;

return [

Expand All @@ -18,6 +18,6 @@
|
*/

'default_sender' => HttpSender::class,
'default_sender' => GuzzleSender::class,

];
3 changes: 2 additions & 1 deletion tests/Feature/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use Saloon\Http\Senders\GuzzleSender;
use Saloon\HttpSender\HttpSender;
use Saloon\Laravel\Tests\Fixtures\Requests\UserRequest;
use Saloon\Laravel\Tests\Fixtures\Requests\ErrorRequest;
Expand All @@ -11,7 +12,7 @@
$request = new UserRequest();
$response = TestConnector::make()->send($request);

expect($response->getConnector()->sender())->toBeInstanceOf(HttpSender::class);
expect($response->getConnector()->sender())->toBeInstanceOf(GuzzleSender::class);

$data = $response->json();

Expand Down

0 comments on commit 5804282

Please sign in to comment.