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,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),
]);