fix(formating)

This commit is contained in:
Anatoliy Poloz
2026-01-28 03:36:26 +03:00
parent 1723177949
commit b15d29f8e9
313 changed files with 1863 additions and 1533 deletions

View File

@@ -1,11 +1,10 @@
<?php
use Apoloz\AlfaBank\Core\AlfaBankConnector;
use Apoloz\AlfaBank\Core\AlfaConfig;
use Apoloz\AlfaBank\Requests\Cards\GetCardsRequest;
use Saloon\Http\Faking\MockResponse;
test('can get cards list', function () {
test('can get cards list', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
GetCardsRequest::class => MockResponse::make([
'cards' => [
@@ -14,9 +13,9 @@ test('can get cards list', function () {
'maskedNumber' => '5555****4444',
'status' => 'ACTIVE',
'expirationDate' => '12/25',
'paymentSystem' => 'MasterCard'
]
]
'paymentSystem' => 'MasterCard',
],
],
], 200, ['Content-Type' => 'application/json']),
]);
@@ -24,7 +23,7 @@ test('can get cards list', function () {
$connector = new AlfaBankConnector($config);
$connector->withMockClient($mockClient);
$response = $connector->send(new GetCardsRequest());
$response = $connector->send(new GetCardsRequest);
expect($response->status())->toBe(200)
->and($response->dto()->count())->toBe(1)