forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Apoloz\AlfaBank\Sbp\SbpConnector;
|
||||
use Apoloz\AlfaBank\Core\AlfaConfig;
|
||||
use Apoloz\AlfaBank\Sbp\Requests\Reversal\GetQrcReversalDataRequest;
|
||||
use Apoloz\AlfaBank\Sbp\Data\Reversal\GetQrcReversalDataRequestData;
|
||||
use Apoloz\AlfaBank\Sbp\Requests\Reversal\GetQrcReversalDataRequest;
|
||||
use Apoloz\AlfaBank\Sbp\SbpConnector;
|
||||
use Saloon\Http\Faking\MockResponse;
|
||||
|
||||
test('can check reversal data', function () {
|
||||
test('can check reversal data', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
GetQrcReversalDataRequest::class => MockResponse::make([
|
||||
'ErrorCode' => 0,
|
||||
'message' => 'OK',
|
||||
'qrcId' => 'test-id',
|
||||
'messageID' => 'guid-123',
|
||||
'payerBnkName' => 'Alfa'
|
||||
'payerBnkName' => 'Alfa',
|
||||
], 200),
|
||||
]);
|
||||
|
||||
@@ -36,7 +36,7 @@ test('can check reversal data', function () {
|
||||
->and($response->dto()->messageID)->toBe('guid-123');
|
||||
});
|
||||
|
||||
test('can get reversal history', function () {
|
||||
test('can get reversal history', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
\Apoloz\AlfaBank\Sbp\Requests\Reversal\GetQrcReversalHistoryRequest::class => \Saloon\Http\Faking\MockResponse::make([
|
||||
'ErrorCode' => 0,
|
||||
@@ -48,9 +48,9 @@ test('can get reversal history', function () {
|
||||
'originalQrcId' => 'QR-123',
|
||||
'originalTrxId' => 'TRX-123',
|
||||
'payerId' => '7900',
|
||||
'status' => 'ACWP'
|
||||
]
|
||||
]
|
||||
'status' => 'ACWP',
|
||||
],
|
||||
],
|
||||
], 200),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user