forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user