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

@@ -5,10 +5,10 @@ use Apoloz\AlfaBank\Requests\Escrow\GetBuildProjectsRequest;
use Apoloz\AlfaBank\Requests\Escrow\GetEscrowOrdersRequest;
use Saloon\Http\Faking\MockResponse;
test('can get build projects', function () {
test('can get build projects', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
GetBuildProjectsRequest::class => MockResponse::make([
['projectNumber' => '123', 'commercialName' => 'ЖК Тест']
['projectNumber' => '123', 'commercialName' => 'ЖК Тест'],
], 200),
]);
@@ -16,17 +16,17 @@ test('can get build projects', function () {
$connector = new AlfaBankConnector($config);
$connector->withMockClient($mockClient);
$response = $connector->send(new GetBuildProjectsRequest());
$response = $connector->send(new GetBuildProjectsRequest);
expect($response->status())->toBe(200)
->and($response->json())->toBeArray()
->and($response->json('0.projectNumber'))->toBe('123');
});
test('can get escrow orders', function () {
test('can get escrow orders', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
GetEscrowOrdersRequest::class => MockResponse::make([
'orders' => []
'orders' => [],
], 200),
]);