forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -5,13 +5,13 @@ use Apoloz\AlfaBank\Core\AlfaConfig;
|
||||
use Apoloz\AlfaBank\Requests\NominalAccounts\GetNominalAccountsRequest;
|
||||
use Saloon\Http\Faking\MockResponse;
|
||||
|
||||
test('can list nominal accounts', function () {
|
||||
test('can list nominal accounts', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
GetNominalAccountsRequest::class => MockResponse::make([
|
||||
[
|
||||
'accountNumber' => '40817810306050000000',
|
||||
'isActive' => true,
|
||||
]
|
||||
],
|
||||
], 200),
|
||||
]);
|
||||
|
||||
@@ -23,7 +23,7 @@ test('can list nominal accounts', function () {
|
||||
$connector = new AlfaBankConnector($config);
|
||||
$connector->withMockClient($mockClient);
|
||||
|
||||
$response = $connector->send(new GetNominalAccountsRequest());
|
||||
$response = $connector->send(new GetNominalAccountsRequest);
|
||||
|
||||
expect($response->status())->toBe(200)
|
||||
->and($response->dto()->first()->accountNumber)->toBe('40817810306050000000');
|
||||
|
||||
Reference in New Issue
Block a user